From efd031124d9098a01425304f5f7dde8a02ab542a Mon Sep 17 00:00:00 2001 From: rster2002 Date: Tue, 16 Apr 2024 17:26:28 +0200 Subject: [PATCH] myxer: init at 1.3.0 Myxer was previously included in Nixpkgs, but was removed after some build issues. --- pkgs/by-name/my/myxer/package.nix | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/my/myxer/package.nix diff --git a/pkgs/by-name/my/myxer/package.nix b/pkgs/by-name/my/myxer/package.nix new file mode 100644 index 000000000000..200ca4bce15c --- /dev/null +++ b/pkgs/by-name/my/myxer/package.nix @@ -0,0 +1,44 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, wrapGAppsHook +, libpulseaudio +, glib +, pango +, gtk3 +}: + +rustPlatform.buildRustPackage rec { + pname = "myxer"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "Aurailus"; + repo = "myxer"; + rev = version; + hash = "sha256-c5SHjnhWLp0jMdmDlupMTA0hWphub5DFY1vOI6NW8E0="; + }; + + cargoHash = "sha256-IH+SLIHO/wu+przH+mgOEnH9m+iAE5s/BJhh0UUHR/0="; + + nativeBuildInputs = [ pkg-config wrapGAppsHook ]; + + buildInputs = [ libpulseaudio glib pango gtk3 ]; + + postInstall = '' + install -Dm644 Myxer.desktop $out/share/applications/Myxer.desktop + ''; + + # Currently no tests are implemented, so we avoid building the package twice + doCheck = false; + + meta = with lib; { + description = "A modern Volume Mixer for PulseAudio"; + homepage = "https://github.com/Aurailus/Myxer"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ erin rster2002 ]; + mainProgram = "myxer"; + platforms = platforms.linux; + }; +}