Skip to content

Commit efd0311

Browse files
committed
myxer: init at 1.3.0
Myxer was previously included in Nixpkgs, but was removed after some build issues.
1 parent d947abe commit efd0311

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

pkgs/by-name/my/myxer/package.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{ lib
2+
, rustPlatform
3+
, fetchFromGitHub
4+
, pkg-config
5+
, wrapGAppsHook
6+
, libpulseaudio
7+
, glib
8+
, pango
9+
, gtk3
10+
}:
11+
12+
rustPlatform.buildRustPackage rec {
13+
pname = "myxer";
14+
version = "1.3.0";
15+
16+
src = fetchFromGitHub {
17+
owner = "Aurailus";
18+
repo = "myxer";
19+
rev = version;
20+
hash = "sha256-c5SHjnhWLp0jMdmDlupMTA0hWphub5DFY1vOI6NW8E0=";
21+
};
22+
23+
cargoHash = "sha256-IH+SLIHO/wu+przH+mgOEnH9m+iAE5s/BJhh0UUHR/0=";
24+
25+
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
26+
27+
buildInputs = [ libpulseaudio glib pango gtk3 ];
28+
29+
postInstall = ''
30+
install -Dm644 Myxer.desktop $out/share/applications/Myxer.desktop
31+
'';
32+
33+
# Currently no tests are implemented, so we avoid building the package twice
34+
doCheck = false;
35+
36+
meta = with lib; {
37+
description = "A modern Volume Mixer for PulseAudio";
38+
homepage = "https://github.com/Aurailus/Myxer";
39+
license = licenses.gpl3Only;
40+
maintainers = with maintainers; [ erin rster2002 ];
41+
mainProgram = "myxer";
42+
platforms = platforms.linux;
43+
};
44+
}

0 commit comments

Comments
 (0)