brush-splat: 0.2.0 -> 0.3.0

This commit is contained in:
BatteredBunny
2026-05-15 21:25:23 +03:00
parent 810ac76b8c
commit 7b95f9d454
+24 -20
View File
@@ -3,52 +3,46 @@
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
libxkbcommon,
sqlite,
vulkan-loader,
zstd,
stdenv,
wayland,
nix-update-script,
versionCheckHook,
libx11,
libxcursor,
libxi,
libxrandr,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "brush-splat";
version = "0.2.0";
version = "0.3.0";
src = fetchFromGitHub {
owner = "ArthurBrussee";
repo = "brush";
tag = finalAttrs.version;
hash = "sha256-IvsHYCM/M2hHozzKwovgXpcW1b7MSEGneU62y1k8U9U=";
tag = "v${finalAttrs.version}";
hash = "sha256-xVYZrQUgHxaefAMmSXG/rrVlCr0H5lRmyyXtRmOtbTU=";
};
cargoHash = "sha256-7cJj5L8ggkBP9SDaYMtY9xIAHVAhi8cTD/0pncUaHbI=";
# Force linking to libEGL, which is always dlopen()ed, and to
# libwayland-client & libxkbcommon, which is dlopen()ed based on the
# winit backend.
env.NIX_LDFLAGS = toString [
"--no-as-needed"
"-lvulkan"
"-lwayland-client"
"-lxkbcommon"
];
cargoHash = "sha256-KBgE0fiaUEsGuAYGhBjqMX7ftj5JnGggH86brxq6280=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
libxkbcommon
sqlite
vulkan-loader
zstd
]
++ lib.optionals stdenv.hostPlatform.isLinux [
libx11
libxcursor
libxi
libxkbcommon
libxrandr
vulkan-loader
wayland
];
@@ -56,6 +50,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf --add-rpath "${
lib.makeLibraryPath [
vulkan-loader
wayland
libxkbcommon
]
}" $out/bin/brush_app
'';
nativeInstallCheckInputs = [
versionCheckHook
];