29 stdenv.mkDerivation (finalAttrs: {
30 pname = "glamoroustoolkit";
34 url = "https://github.com/feenkcom/gtoolkit-vm/releases/download/v${finalAttrs.version}/GlamorousToolkit-x86_64-unknown-linux-gnu.zip";
36 hash = "sha256-/p/oCE1fmlPjy1Xg36rsczZ74L0M7qWsdcFm6cHPVVY=";
53 install -d $out/bin $out/lib
54 cp -r $src/bin $src/lib $out/
55 cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
61 libPath = lib.makeLibraryPath [
77 harfbuzz # libWebView.so
78 libsoup_3 # libWebView.so
79 webkitgtk_4_1 # libWebView.so
80 (lib.getLib stdenv.cc.cc)
82 binPath = lib.makeBinPath [
83 zenity # File selection dialog
86 chmod +x $out/lib/*.so
88 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
89 --set-rpath "${libPath}:$out/lib" \
90 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
91 patchelf --shrink-rpath \
92 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
94 --set-rpath "${libPath}:$out/lib" \
96 patchelf --shrink-rpath $out/lib/*.so
98 # shrink-rpath gets it wrong for the following libraries,
99 # restore the full rpath.
102 --set-rpath "${libPath}:$out/lib" \
103 $out/lib/libPharoVMCore.so \
104 $out/lib/libWinit.so \
105 $out/lib/libPixels.so
106 patchelf --set-rpath $out/lib $out/lib/libssl.so
108 ln -s $out/lib/libcrypto.so $out/lib/libcrypto.so.1.1
109 ln -s $out/lib/libcairo.so $out/lib/libcairo.so.2
110 rm $out/lib/libgit2.so
111 ln -s "${libgit2}/lib/libgit2.so" $out/lib/libgit2.so.1.1
114 --prefix PATH : ${binPath}
119 homepage = "https://gtoolkit.com";
120 description = "GlamorousToolkit Development Environment";
121 license = lib.licenses.mit;
122 maintainers = [ lib.maintainers.akgrant43 ];
123 platforms = [ "x86_64-linux" ];
124 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];