diff options
author | linsui <linsui555@gmail.com> | 2022-04-22 16:00:56 +0800 |
---|---|---|
committer | linsui <linsui555@gmail.com> | 2022-04-22 16:00:56 +0800 |
commit | b481025616b5873f1f15e253d384bce8363de9fe (patch) | |
tree | 5f4793ed3e595f5f79add1bcb7dc8137929eed60 /pkgs/applications/audio/amberol | |
parent | 163f66a804c6b682bb8655532589088cf43326fe (diff) |
amberol: init at 0.3.0
Diffstat (limited to 'pkgs/applications/audio/amberol')
-rw-r--r-- | pkgs/applications/audio/amberol/default.nix | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/pkgs/applications/audio/amberol/default.nix b/pkgs/applications/audio/amberol/default.nix new file mode 100644 index 0000000000000..b778b7f2696ab --- /dev/null +++ b/pkgs/applications/audio/amberol/default.nix @@ -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; + }; +} |