2007-08-11 22:55:40 +02:00
|
|
|
args:
|
|
|
|
if ((args ? startFPC) && (args.startFPC != null))
|
|
|
|
then
|
2008-01-30 18:20:48 +01:00
|
|
|
with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-10-04 21:18:31 +02:00
|
|
|
name = "fpc-2.2.0";
|
2007-08-11 22:55:40 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2007-10-04 21:18:31 +02:00
|
|
|
url = ftp://freepascal.stack.nl/pub/fpc/dist/source-2.2.0/fpcbuild-2.2.0.tar.gz;
|
|
|
|
sha256 = "0pvsdmimknkgy8jgdz9kd7w5bs9fy5ynrgswpk0ib6x0y26zxijm";
|
2007-08-11 22:55:40 +02:00
|
|
|
};
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
buildInputs = [startFPC gawk];
|
2007-08-11 22:55:40 +02:00
|
|
|
|
|
|
|
installFlags = "INSTALL_PREFIX=\${out}";
|
|
|
|
postInstall = "ln -fs $out/lib/fpc/*/ppc386 $out/bin;
|
|
|
|
mkdir -p $out/lib/fpc/etc/ ;
|
2007-10-19 09:59:48 +02:00
|
|
|
$out/lib/fpc/*/samplecfg $out/lib/fpc/2.2.0 $out/lib/fpc/etc/;";
|
2007-08-11 22:55:40 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Free Pascal Compiler from a source distribution.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
} else (import ./default.nix (args // {startFPC = (import ./binary.nix args);}))
|