2022-11-30 05:14:07 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-01-07 23:11:03 +00:00
|
|
|
, expat
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
2022-11-30 05:14:07 +00:00
|
|
|
, libGL
|
2023-01-07 23:11:03 +00:00
|
|
|
, libxkbcommon
|
2022-11-30 05:14:07 +00:00
|
|
|
, pipewire
|
2023-01-07 23:11:03 +00:00
|
|
|
, wayland
|
2022-11-30 05:14:07 +00:00
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pw-viz";
|
2023-01-07 23:11:03 +00:00
|
|
|
version = "0.2.0";
|
2022-11-30 05:14:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ax9d";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-07 23:11:03 +00:00
|
|
|
sha256 = "sha256-lw4whdh8tNoS5XUlamQCq8f8z8K59uD90PSSo3skeyo=";
|
2022-11-30 05:14:07 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +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 = [
|
2023-01-07 23:11:03 +00:00
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
2022-11-30 05:14:07 +00:00
|
|
|
libGL
|
2023-01-07 23:11:03 +00:00
|
|
|
libxkbcommon
|
2022-11-30 05:14:07 +00:00
|
|
|
pipewire
|
|
|
|
rustPlatform.bindgenHook
|
2023-01-07 23:11:03 +00:00
|
|
|
wayland
|
2022-11-30 05:14:07 +00:00
|
|
|
xorg.libX11
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXi
|
2023-01-07 23:11:03 +00:00
|
|
|
xorg.libXrandr
|
2022-11-30 05:14:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
2023-01-07 23:11:03 +00:00
|
|
|
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
|
2023-02-19 19:23:32 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|