nixpkgs-suyu/pkgs/development/compilers/fpc/binary.nix

25 lines
736 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation {
2014-08-31 20:47:28 +02:00
name = "fpc-2.6.0-binary";
src =
if stdenv.system == "i686-linux" then
fetchurl {
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.i386-linux.tar";
2014-08-31 20:47:28 +02:00
sha256 = "08yklvrfxvk59bxsd4rh1i6s3cjn0q06dzjs94h9fbq3n1qd5zdf";
}
else if stdenv.system == "x86_64-linux" then
fetchurl {
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.x86_64-linux.tar";
2014-08-31 20:47:28 +02:00
sha256 = "0k9vi75k39y735fng4jc2vppdywp82j4qhzn7x4r6qjkad64d8lx";
}
else throw "Not supported on ${stdenv.system}.";
builder = ./binary-builder.sh;
meta = {
description = "Free Pascal Compiler from a binary distribution";
};
}