parent
118e9d6ebf
commit
aae4a8db7a
@ -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 |
||||
|
@ -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. |
||||
"; |
||||
}; |
||||
} |
@ -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);})) |
Loading…
Reference in new issue