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";
|
2024-09-12 17:39:52 +00:00
|
|
|
version = "0.3.0";
|
2022-11-30 05:14:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ax9d";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-12 17:39:52 +00:00
|
|
|
sha256 = "sha256-fB7PnWWahCMKhGREg6neLmOZjh2OWLu61Vpmfsl03wA=";
|
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; {
|
2024-07-26 00:18:51 +00:00
|
|
|
description = "Simple and elegant pipewire graph editor";
|
2022-11-30 05:14:07 +00:00
|
|
|
homepage = "https://github.com/ax9d/pw-viz";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|