nixpkgs/pkgs/applications/audio/amberol/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.4 KiB
Nix
Raw Normal View History

2022-04-22 08:00:56 +00:00
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, desktop-file-utils
, appstream-glib
, meson
, ninja
, pkg-config
, reuse
2022-05-07 13:13:28 +00:00
, m4
2022-04-22 08:00:56 +00:00
, wrapGAppsHook4
, glib
, gtk4
, gst_all_1
, libadwaita
, dbus
}:
stdenv.mkDerivation rec {
pname = "amberol";
2022-08-31 15:14:01 +00:00
version = "0.9.1";
2022-04-22 08:00:56 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
2022-08-31 15:14:01 +00:00
hash = "sha256-UZFOQw9eXSyCey4YQ4pWV91BIo+5tFw1N8es5H03+fc=";
2022-04-22 08:00:56 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2022-08-31 15:14:01 +00:00
hash = "sha256-ebo718+HAZFd7Pjy06jAzmaLdjR3o4Hn0xEeO7yiIC0=";
2022-04-22 08:00:56 +00:00
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
reuse
2022-05-07 13:13:28 +00:00
m4
2022-04-22 08:00:56 +00:00
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; {
2022-06-04 11:52:08 +00:00
homepage = "https://gitlab.gnome.org/World/amberol";
2022-04-22 08:00:56 +00:00
description = "A small and simple sound and music player";
maintainers = with maintainers; [ linsui ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}