3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/fpc/default.nix
Michael Raskin aae4a8db7a Added Free Pascal Compiler.
svn path=/nixpkgs/trunk/; revision=9102
2007-08-11 20:55:40 +00:00

26 lines
705 B
Nix

args:
if ((args ? startFPC) && (args.startFPC != null))
then
args.stdenv.mkDerivation {
name = "fpc-2.0.4";
src = args.
fetchurl {
url = ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/source-2.0.4/fpcbuild-2.0.4.tar.gz;
sha256 = "0sxgmslxy891why3d5pwn7zh4w3wj75apmhc7l5czmfhn3f0gcsc";
};
buildInputs = [args.startFPC args.gawk];
installFlags = "INSTALL_PREFIX=\${out}";
postInstall = "ln -fs $out/lib/fpc/*/ppc386 $out/bin;
mkdir -p $out/lib/fpc/etc/ ;
$out/lib/fpc/*/samplecfg $out/lib/fpc/2.* $out/lib/fpc/etc/;";
meta = {
description = "
Free Pascal Compiler from a source distribution.
";
};
} else (import ./default.nix (args // {startFPC = (import ./binary.nix args);}))