From b481025616b5873f1f15e253d384bce8363de9fe Mon Sep 17 00:00:00 2001 From: linsui Date: Fri, 22 Apr 2022 16:00:56 +0800 Subject: [PATCH] amberol: init at 0.3.0 --- pkgs/applications/audio/amberol/default.nix | 75 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 77 insertions(+) create mode 100644 pkgs/applications/audio/amberol/default.nix diff --git a/pkgs/applications/audio/amberol/default.nix b/pkgs/applications/audio/amberol/default.nix new file mode 100644 index 000000000000..b778b7f2696a --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2dd0f9e31565..2466abfe74e4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1360,6 +1360,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + amberol = callPackage ../applications/audio/amberol {}; + inherit (callPackages ../development/tools/ammonite {}) ammonite_2_12 ammonite_2_13;