Skip to content

Commit

Permalink
update waypipe to version 10.0
Browse files Browse the repository at this point in the history
added cargo meson build as waypipe now uses rust

use tagged version instead of master
  • Loading branch information
TakodaS authored and Mic92 committed Jan 14, 2025
1 parent 2fdec2c commit 94cde4b
Showing 1 changed file with 38 additions and 9 deletions.
47 changes: 38 additions & 9 deletions pkgs/by-name/wa/waypipe/package.nix
Original file line number Diff line number Diff line change
@@ -1,50 +1,79 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitLab,
meson,
ninja,
pkg-config,
scdoc,
libgbm,
mesa,
lz4,
zstd,
ffmpeg,
libva,
cargo,
rustc,
git,
vulkan-headers,
vulkan-loader,
shaderc,
vulkan-tools,
llvmPackages,
autoPatchelfHook,
wayland,
wayland-scanner,
rust-bindgen,
egl-wayland,
}:

stdenv.mkDerivation rec {
llvmPackages.stdenv.mkDerivation rec {
pname = "waypipe";
version = "0.9.2";
version = "0.10.0";

src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mstoeckl";
repo = "waypipe";
rev = "v${version}";
hash = "sha256-DW+WWwuav0lxnoV55L8RrX0enRURRnHMljtwEC0+9t4=";
tag = "v${version}";
hash = "sha256-OV0FHieHce83W2O379VpGmUMrtID7NdtIrxIe+IJfF0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit pname version src;
hash = "sha256-pC1m1P4wJOT3jARGlpc86u7GdyPXX+YHsFLOcWRqdxI=";
};

strictDeps = true;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
cargo
git
vulkan-headers
vulkan-loader
shaderc
rustc
wayland-scanner
rustPlatform.cargoSetupHook
autoPatchelfHook
rust-bindgen
];
buildInputs = [
# Optional dependencies:
libgbm
mesa
lz4
zstd
ffmpeg
libva

vulkan-headers
];
runtimeDependencies = [
vulkan-tools
vulkan-loader
wayland
egl-wayland
];

meta = with lib; {
Expand Down

0 comments on commit 94cde4b

Please sign in to comment.