22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{ 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.4.3";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-4yW7rVlP9Zskyt4l/VQoX+9q3TUdEuLZrNQuQvziIf4=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
sha256 = "sha256-1ahEWLBmkT+B8qD0Qd1skXqk1wvP6yuFNAQBRdispC4=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|