nixpkgs/pkgs/applications/misc/pw-viz/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-30 05:14:07 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, expat
, fontconfig
, freetype
2022-11-30 05:14:07 +00:00
, libGL
, libxkbcommon
2022-11-30 05:14:07 +00:00
, pipewire
, wayland
2022-11-30 05:14:07 +00:00
, xorg
}:
rustPlatform.buildRustPackage rec {
pname = "pw-viz";
version = "0.2.0";
2022-11-30 05:14:07 +00:00
src = fetchFromGitHub {
owner = "ax9d";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lw4whdh8tNoS5XUlamQCq8f8z8K59uD90PSSo3skeyo=";
2022-11-30 05:14:07 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"egui_nodes-0.1.4" = "sha256-Bb88T+erjgKD769eYOSiVEg9lFnB5pBEDLeWgCdyUus=";
};
};
2022-11-30 05:14:07 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
expat
fontconfig
freetype
2022-11-30 05:14:07 +00:00
libGL
libxkbcommon
2022-11-30 05:14:07 +00:00
pipewire
rustPlatform.bindgenHook
wayland
2022-11-30 05:14:07 +00:00
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
2022-11-30 05:14:07 +00:00
];
postFixup = ''
patchelf $out/bin/pw-viz \
--add-rpath ${lib.makeLibraryPath [ libGL libxkbcommon wayland ]}
2022-11-30 05:14:07 +00:00
'';
2023-01-18 23:39:30 +00:00
# enables pipewire API deprecated in 0.3.64
# fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55
env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ];
2023-01-18 23:39:30 +00:00
2022-11-30 05:14:07 +00:00
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;
};
}