2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-01-11 07:51:40 +00:00
|
|
|
, expat
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
2022-12-17 10:02:37 +00:00
|
|
|
, libGL
|
2023-01-11 07:51:40 +00:00
|
|
|
, libxkbcommon
|
2022-12-17 10:02:37 +00:00
|
|
|
, pipewire
|
2023-01-11 07:51:40 +00:00
|
|
|
, wayland
|
2022-12-17 10:02:37 +00:00
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pw-viz";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.2.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ax9d";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-lw4whdh8tNoS5XUlamQCq8f8z8K59uD90PSSo3skeyo=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"egui_nodes-0.1.4" = "sha256-Bb88T+erjgKD769eYOSiVEg9lFnB5pBEDLeWgCdyUus=";
|
|
|
|
};
|
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
2022-12-17 10:02:37 +00:00
|
|
|
libGL
|
2023-01-11 07:51:40 +00:00
|
|
|
libxkbcommon
|
2022-12-17 10:02:37 +00:00
|
|
|
pipewire
|
|
|
|
rustPlatform.bindgenHook
|
2023-01-11 07:51:40 +00:00
|
|
|
wayland
|
2022-12-17 10:02:37 +00:00
|
|
|
xorg.libX11
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXi
|
2023-01-11 07:51:40 +00:00
|
|
|
xorg.libXrandr
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
2023-01-11 07:51:40 +00:00
|
|
|
patchelf $out/bin/pw-viz \
|
|
|
|
--add-rpath ${lib.makeLibraryPath [ libGL libxkbcommon wayland ]}
|
2022-12-17 10:02:37 +00:00
|
|
|
'';
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# enables pipewire API deprecated in 0.3.64
|
|
|
|
# fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple and elegant pipewire graph editor ";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/ax9d/pw-viz";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|