about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorrster2002 <rster2002dev@gmail.com>2024-04-16 17:26:28 +0200
committerrster2002 <rster2002dev@gmail.com>2024-04-18 12:06:49 +0200
commitefd031124d9098a01425304f5f7dde8a02ab542a (patch)
tree7631b4212dda50db30c9074f5d3e8843237ec90f /pkgs/by-name
parentd947abe783a7307ed7faca7f9c91c7907ac77ffc (diff)
myxer: init at 1.3.0
Myxer was previously included in Nixpkgs, but was removed after some build issues.
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/my/myxer/package.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/my/myxer/package.nix b/pkgs/by-name/my/myxer/package.nix
new file mode 100644
index 0000000000000..200ca4bce15c4
--- /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;
+  };
+}