blob: f569932475534ebce32c0e3495640ef0ef92ad1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libGL
, pipewire
, xorg
}:
rustPlatform.buildRustPackage rec {
pname = "pw-viz";
version = "0.1.0";
src = fetchFromGitHub {
owner = "ax9d";
repo = pname;
rev = "v${version}";
sha256 = "1d46m7w6rzzjpxc2fxwka9xbz49szbfrl63kxlv6kw4lknrladjn";
};
cargoSha256 = "sha256-jx1mUP6ezpwUhmDD9tCJBhHCHU8fEMlB738yYfB1psc=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libGL
pipewire
rustPlatform.bindgenHook
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libxcb
];
postFixup = ''
patchelf $out/bin/pw-viz --add-rpath ${lib.makeLibraryPath [ libGL xorg.libXrandr ]}
'';
meta = with lib; {
description = "A simple and elegant pipewire graph editor ";
homepage = "https://github.com/ax9d/pw-viz";
license = licenses.gpl3Only;
maintainers = with maintainers; [ figsoda ];
platforms = platforms.linux;
};
}
|