48 lines
842 B
Nix
48 lines
842 B
Nix
{
|
|
libglvnd,
|
|
libxkbcommon,
|
|
rustPlatform,
|
|
vulkan-loader,
|
|
wayland,
|
|
}:
|
|
rustPlatform.buildRustPackage {
|
|
name = "mslicer";
|
|
src = ./.;
|
|
|
|
cargoHash = "sha256-mRbEwxR6bMkybxe7H1dX4Qa1elGiw/lSSz9sSTtp1zw=";
|
|
useFetchCargoVendor = true;
|
|
|
|
buildInputs = [
|
|
libglvnd
|
|
libxkbcommon
|
|
vulkan-loader
|
|
wayland
|
|
];
|
|
|
|
NIX_LDFLAGS = [
|
|
"--push-state"
|
|
"--no-as-needed"
|
|
"-lEGL"
|
|
"-lvulkan"
|
|
"-lwayland-client"
|
|
"-lxkbcommon"
|
|
"--pop-state"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
# spot-check the binaries
|
|
$out/bin/goo_format --help
|
|
# these other binaries can't be invoked w/ interactivity or real data:
|
|
test -x $out/bin/mslicer
|
|
test -x $out/bin/remote_send
|
|
test -x $out/bin/slicer
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
strictDeps = true;
|
|
}
|