Merge pull request #203715 from figsoda/pw-viz

pw-viz: init at 0.1.0
This commit is contained in:
figsoda 2022-12-02 15:35:35 -05:00 committed by GitHub
commit 925613c8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,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;
};
}

View file

@ -9872,6 +9872,8 @@ with pkgs;
pwsafe = callPackage ../applications/misc/pwsafe { };
pw-viz = callPackage ../applications/misc/pw-viz { };
napi-rs-cli = callPackage ../development/tools/napi-rs-cli { };
neil = callPackage ../development/tools/neil { };