parent
163f66a804
commit
b481025616
@ -0,0 +1,75 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitLab |
||||
, rustPlatform |
||||
, desktop-file-utils |
||||
, appstream-glib |
||||
, meson |
||||
, ninja |
||||
, pkg-config |
||||
, reuse |
||||
, wrapGAppsHook4 |
||||
, glib |
||||
, gtk4 |
||||
, gst_all_1 |
||||
, libadwaita |
||||
, dbus |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "amberol"; |
||||
version = "0.3.0"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "gitlab.gnome.org"; |
||||
owner = "World"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "sha256-+9lrSkjk7V+ZnIhmhw7lEiEywDp5adoAW+5PEAlhpSI="; |
||||
}; |
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball { |
||||
inherit src; |
||||
name = "${pname}-${version}"; |
||||
sha256 = "sha256-ZJiD6RshEjZ7h+/KYcY+ZjL5fHRb5+RKgIdgbD6LdkA="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
patchShebangs build-aux |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
appstream-glib |
||||
desktop-file-utils |
||||
meson |
||||
ninja |
||||
pkg-config |
||||
reuse |
||||
wrapGAppsHook4 |
||||
] ++ (with rustPlatform; [ |
||||
cargoSetupHook |
||||
rust.cargo |
||||
rust.rustc |
||||
]); |
||||
|
||||
buildInputs = [ |
||||
glib |
||||
gtk4 |
||||
libadwaita |
||||
gst_all_1.gstreamer |
||||
gst_all_1.gst-plugins-base |
||||
gst_all_1.gst-plugins-good |
||||
gst_all_1.gst-plugins-bad |
||||
gst_all_1.gst-plugins-ugly |
||||
gst_all_1.gst-libav |
||||
dbus |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://gitlab.gnome.org/ebassi/amberol"; |
||||
description = "A small and simple sound and music player"; |
||||
maintainers = with maintainers; [ linsui ]; |
||||
license = licenses.gpl3Plus; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
Loading…
Reference in new issue