18 stdenv.mkDerivation rec{
19 pname = "unigine-sanctuary";
23 url = "https://assets.unigine.com/d/Unigine_Sanctuary-${version}.run";
24 sha256 = "sha256-KKi70ctkEm+tx0kjBMWVKMLDrJ1TsPH+CKLDMXA6OdU=";
27 libPath = lib.makeLibraryPath [
34 bash $src --target ${pname}-${version}
36 install -D -m 0755 ${pname}-${version}/bin/libUnigine_x86.so $out/lib/unigine/sanctuary/bin/libUnigine_x86.so
37 install -D -m 0755 ${pname}-${version}/bin/Sanctuary $out/lib/unigine/sanctuary/bin/Sanctuary
38 install -D -m 0755 ${pname}-${version}/1024x768_windowed.sh $out/bin/Sanctuary
40 cp -R ${pname}-${version}/data $out/lib/unigine/sanctuary
42 wrapProgram $out/bin/Sanctuary \
43 --prefix LD_LIBRARY_PATH : ${libPath}:$out/lib/unigine/sanctuary/bin \
44 --run "cd $out/lib/unigine/sanctuary"
46 convert -size 256x256 xc:Transparent -define gradient:center="128,128" -define gradient:vector="128,128 128,128" \
47 -define gradient:radii="128,128" -fill radial-gradient:'rgb(164,0,0)-rgb(67,1,3)' \
48 -draw "roundRectangle 0,0 256,256 50,50" ${pname}-${version}/icon.png
49 convert ${pname}-${version}/icon.png -size 181.991x181.991 -font ${liberation_ttf}/share/fonts/truetype/LiberationSans-Regular.ttf \
50 -pointsize 181.991 -define gradient:center="128,128" -define gradient:vector="128,128 128,128" \
51 -define gradient:radii="46.6974,46.6974" -fill radial-gradient:'rgb(249,197,46)-rgb(218,144,31)' \
52 -stroke none -strokewidth 4.54977 -draw 'text 69.3061,194.247 "S"' ${pname}-${version}/icon.png
54 for RES in 16 24 32 48 64 128 256; do
55 mkdir -p $out/share/icons/hicolor/"$RES"x"$RES"/apps
56 convert ${pname}-${version}/icon.png -resize "$RES"x"$RES" $out/share/icons/hicolor/"$RES"x"$RES"/apps/Sanctuary.png
58 convert ${pname}-${version}/icon.png -resize 128x128 $out/share/icons/Sanctuary.png
67 genericName = "A GPU Stress test tool from the UNIGINE";
69 desktopName = "Sanctuary Benchmark";
91 description = "Unigine Heaven GPU benchmarking tool";
92 homepage = "https://benchmark.unigine.com/sanctuary";
93 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
94 license = lib.licenses.unfree;
95 maintainers = [ lib.maintainers.BarinovMaxim ];
96 platforms = [ "x86_64-linux" "i686-linux" ];
97 mainProgram = "Sanctuary";