Added Free Pascal Compiler.
svn path=/nixpkgs/trunk/; revision=9102
This commit is contained in:
parent
118e9d6ebf
commit
aae4a8db7a
10
pkgs/development/compilers/fpc/binary-builder.sh
Executable file
10
pkgs/development/compilers/fpc/binary-builder.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
tar xf $src
|
||||||
|
tarballdir=$(pwd)
|
||||||
|
for i in *.tar; do tar xf $i; done
|
||||||
|
mkdir $out
|
||||||
|
cd $out
|
||||||
|
for i in $tarballdir/*.gz; do tar xf $i; done
|
||||||
|
ln -fs $out/lib/fpc/*/ppc386 $out/bin
|
||||||
|
|
18
pkgs/development/compilers/fpc/binary.nix
Normal file
18
pkgs/development/compilers/fpc/binary.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
args:
|
||||||
|
args.stdenv.mkDerivation {
|
||||||
|
name = "fpc-2.0.4-binary";
|
||||||
|
|
||||||
|
src = args.
|
||||||
|
fetchurl {
|
||||||
|
url = ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/i386-linux-2.0.4/fpc-2.0.4.i386-linux.tar;
|
||||||
|
sha256 = "0b2szv2anbf58h4i5mlph93afv9qdx6i0jqggba04d3anjbl9gfy";
|
||||||
|
};
|
||||||
|
|
||||||
|
builder = ./binary-builder.sh;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "
|
||||||
|
Free Pascal Compiler from a binary distribution.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
}
|
25
pkgs/development/compilers/fpc/default.nix
Normal file
25
pkgs/development/compilers/fpc/default.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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);}))
|
@ -701,6 +701,10 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fpc = import ../development/compilers/fpc {
|
||||||
|
inherit fetchurl stdenv gawk;
|
||||||
|
};
|
||||||
|
|
||||||
g77 = import ../build-support/gcc-wrapper {
|
g77 = import ../build-support/gcc-wrapper {
|
||||||
name = "g77";
|
name = "g77";
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user