30 stdenv.mkDerivation (finalAttrs: {
31 pname = "glamoroustoolkit";
35 url = "https://github.com/feenkcom/gtoolkit-vm/releases/download/v${finalAttrs.version}/GlamorousToolkit-x86_64-unknown-linux-gnu.zip";
37 hash = "sha256-r7q8apszeiON3MPMSY7GHHTh+hSXlAl35pUTxFV78kk=";
54 install -d $out/bin $out/lib
55 cp -r $src/bin $src/lib $out/
56 cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
63 libPath = lib.makeLibraryPath [
79 harfbuzz # libWebView.so
80 libsoup_3 # libWebView.so
81 webkitgtk_4_1 # libWebView.so
82 (lib.getLib stdenv.cc.cc)
84 binPath = lib.makeBinPath [
85 zenity # File selection dialog
89 chmod +x $out/lib/*.so
91 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
92 --set-rpath "${libPath}:$out/lib" \
93 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
94 patchelf --shrink-rpath \
95 $out/bin/GlamorousToolkit $out/bin/GlamorousToolkit-cli
97 --set-rpath "${libPath}:$out/lib" \
99 patchelf --shrink-rpath $out/lib/*.so
101 # shrink-rpath gets it wrong for the following libraries,
102 # restore the full rpath.
105 --set-rpath "${libPath}:$out/lib" \
106 $out/lib/libPharoVMCore.so \
107 $out/lib/libWinit.so \
108 $out/lib/libPixels.so
109 patchelf --set-rpath $out/lib $out/lib/libssl.so
111 ln -s $out/lib/libcrypto.so $out/lib/libcrypto.so.1.1
112 ln -s $out/lib/libcairo.so $out/lib/libcairo.so.2
113 rm $out/lib/libgit2.so
114 ln -s "${libgit2}/lib/libgit2.so" $out/lib/libgit2.so.1.1
117 --prefix PATH : ${binPath}
122 homepage = "https://gtoolkit.com";
123 description = "GlamorousToolkit Development Environment";
124 license = lib.licenses.mit;
125 maintainers = [ lib.maintainers.akgrant43 ];
126 platforms = [ "x86_64-linux" ];
127 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];