23 stdenv.mkDerivation (finalAttrs: {
24 pname = "glamoroustoolkit";
28 url = "https://github.com/feenkcom/gtoolkit-vm/releases/download/v${finalAttrs.version}/GlamorousToolkit-x86_64-unknown-linux-gnu.zip";
30 hash = "sha256-GQeYR232zoHLIt1AzznD7rp6u4zMiAdj1+0OfXfT6AQ=";
33 nativeBuildInputs = [ wrapGAppsHook ];
44 install -d $out/bin $out/lib
45 cp -r $src/bin $src/lib $out/
46 cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
52 libPath = lib.makeLibraryPath [
71 chmod +x $out/lib/*.so
73 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
74 --set-rpath "${libPath}:$out/lib" \
75 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
76 patchelf --shrink-rpath \
77 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
79 --set-rpath "${libPath}:$out/lib" \
81 patchelf --shrink-rpath $out/lib/*.so
83 # shrink-rpath gets it wrong for the following libraries,
84 # restore the full rpath.
87 --set-rpath "${libPath}:$out/lib" \
88 $out/lib/libPharoVMCore.so \
89 $out/lib/libWinit.so \
91 patchelf --set-rpath $out/lib $out/lib/libssl.so
93 ln -s $out/lib/libcrypto.so $out/lib/libcrypto.so.1.1
94 ln -s $out/lib/libcairo.so $out/lib/libcairo.so.2
95 rm $out/lib/libgit2.so
96 ln -s "${libgit2}/lib/libgit2.so" $out/lib/libgit2.so.1.1
100 homepage = "https://gtoolkit.com";
101 description = "The GlamorousToolkit Development Environment";
102 license = lib.licenses.mit;
103 maintainers = [ lib.maintainers.akgrant43 ];
104 platforms = [ "x86_64-linux" ];
105 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];