File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2+ index a05c447..20a5c98 100644
3+ --- a/CMakeLists.txt
4+ +++ b/CMakeLists.txt
5+ @@ -276,8 +276,8 @@ endif()
6+
7+ # link glslang
8+ find_package(glslang CONFIG REQUIRED)
9+ - target_link_libraries(${PROJECT_NAME} PRIVATE glslang::OSDependent glslang::glslang
10+ - glslang::MachineIndependent glslang::GenericCodeGen glslang::glslang-default-resource-limits
11+ + target_link_libraries(${PROJECT_NAME} PRIVATE glslang::glslang
12+ + glslang::glslang-default-resource-limits
13+ glslang::SPVRemapper glslang::SPIRV)
14+
15+ # link SPIRV-Cross
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ cmake ,
6+
7+ glslang ,
8+ imath ,
9+ ktx-tools ,
10+ openimageio ,
11+ qt6Packages ,
12+ spdlog ,
13+ spirv-cross ,
14+ vulkan-memory-allocator ,
15+ } :
16+
17+ stdenv . mkDerivation ( finalAttrs : {
18+ pname = "gpupad" ;
19+ version = "2.4.0" ;
20+
21+ src = fetchFromGitHub {
22+ owner = "houmain" ;
23+ repo = "gpupad" ;
24+ tag = finalAttrs . version ;
25+ hash = "sha256-yCoLvocfqYOwbsGn2r3+2iThDZCkRAUrNI71fIH7XXU=" ;
26+ fetchSubmodules = true ;
27+ } ;
28+
29+ patches = [
30+ # the current version of glslang no longer separates its libs into sublibs
31+ ./glslang-use-combined-lib.patch
32+ ] ;
33+
34+ strictDeps = true ;
35+
36+ nativeBuildInputs = [
37+ cmake
38+ qt6Packages . wrapQtAppsHook
39+ ] ;
40+
41+ buildInputs = [
42+ glslang
43+ imath # needed for openimageio
44+ ktx-tools
45+ openimageio
46+ qt6Packages . qtbase
47+ qt6Packages . qtdeclarative
48+ qt6Packages . qtmultimedia
49+ spdlog
50+ spirv-cross
51+ vulkan-memory-allocator
52+ ] ;
53+
54+ meta = {
55+ description = "Flexible GLSL and HLSL shader editor and IDE" ;
56+ homepage = "https://github.com/houmain/gpupad" ;
57+ changelog = "https://github.com/houmain/gpupad/blob/${ finalAttrs . src . rev } /CHANGELOG.md" ;
58+ license = lib . licenses . gpl3Only ;
59+ maintainers = with lib . maintainers ; [ tomasajt ] ;
60+ mainProgram = "gpupad" ;
61+ platforms = lib . platforms . linux ;
62+ } ;
63+ } )
You can’t perform that action at this time.
0 commit comments