2007-08-10 10:21:31 +02:00
|
|
|
{stdenv, fetchurl, ocaml, lablgtk, fontschumachermisc, xset, makeWrapper}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "unison-2.13.16";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/unison-2.13.16.tar.gz;
|
|
|
|
sha256 = "808400a933aeb67654edc770822cd186d1b2adc92e7cb5836996c71c69ffe656";
|
|
|
|
};
|
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
buildInputs = [ocaml makeWrapper];
|
2007-08-10 10:21:31 +02:00
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
preBuild = "sed -i \"s|\\(OCAMLOPT=.*\\)$|\\1 -I ${lablgtk}/lib/ocaml/lablgtk2|\" Makefile.OCaml";
|
2007-08-10 10:21:31 +02:00
|
|
|
makeFlags = "UISTYLE=gtk2 INSTALLDIR=$(out)/bin/";
|
|
|
|
preInstall = "ensureDir $out/bin";
|
2008-01-18 12:28:41 +01:00
|
|
|
postInstall = ''
|
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$i \
|
|
|
|
--run "${xset}/bin/xset q | grep -q \"${fontschumachermisc}\" || ${xset}/bin/xset +fp \"${fontschumachermisc}/lib/X11/fonts/misc\""
|
|
|
|
done
|
|
|
|
'';
|
2007-08-10 10:21:31 +02:00
|
|
|
}
|