Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
|
|
glslang,
|
|
imath,
|
|
ktx-tools,
|
|
openimageio,
|
|
qt6Packages,
|
|
spdlog,
|
|
spirv-cross,
|
|
vulkan-memory-allocator,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gpupad";
|
|
version = "2.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "houmain";
|
|
repo = "gpupad";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-Y0LNz8qHNfYhkh+ukJFi56zdaNIy5Gfvena+gSo0oOo=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [
|
|
# the current version of glslang no longer separates its libs into sublibs
|
|
./glslang-use-combined-lib.patch
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
qt6Packages.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glslang
|
|
imath # needed for openimageio
|
|
ktx-tools
|
|
openimageio
|
|
qt6Packages.qtbase
|
|
qt6Packages.qtdeclarative
|
|
qt6Packages.qtmultimedia
|
|
spdlog
|
|
spirv-cross
|
|
vulkan-memory-allocator
|
|
];
|
|
|
|
meta = {
|
|
description = "Flexible GLSL and HLSL shader editor and IDE";
|
|
homepage = "https://github.com/houmain/gpupad";
|
|
changelog = "https://github.com/houmain/gpupad/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
mainProgram = "gpupad";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|