spacefrogg-overlay/pharo.nix

15 lines
372 B
Nix

{ stdenv, makeWrapper, libgit2, libgit2_32, pharo }:
stdenv.mkDerivation {
name = "pharo";
buildInputs = [ makeWrapper pharo ];
phases = "installPhase fixupPhase";
installPhase = ''
mkdir -p $out/bin
ln -s ${pharo}/bin/pharo $out/bin
wrapProgram $out/bin/pharo --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libgit2 libgit2_32 ]}
'';
}