{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, libGLU_combined, freetype, xorg, alsaLib, cairo, libuuid, makeWrapper, ... }: { name, src, ... }: stdenv.mkDerivation rec { inherit name src; pharo-share = import ./share.nix { inherit stdenv fetchurl unzip; }; hardeningDisable = [ "format" "pic" ]; # Building preConfigure = '' cd build/ ''; installPhase = '' mkdir -p "$prefix/lib/$name" cd ../../results mv vm-display-null vm-display-null.so mv vm-display-X11 vm-display-X11.so mv vm-sound-null vm-sound-null.so mv vm-sound-ALSA vm-sound-ALSA.so mv pharo pharo-vm cp * "$prefix/lib/$name" mkdir $prefix/bin chmod u+w $prefix/bin cat > $prefix/bin/pharo-cog <