2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2009-03-03 13:27:40 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-08-31 19:47:28 +01:00
|
|
|
name = "fpc-2.6.0-binary";
|
2007-08-11 21:55:40 +01:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src =
|
|
|
|
if stdenv.system == "i686-linux" then
|
|
|
|
fetchurl {
|
2014-08-31 19:47:28 +01:00
|
|
|
url = "http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/fpc-2.6.0.i386-linux.tar";
|
|
|
|
sha256 = "08yklvrfxvk59bxsd4rh1i6s3cjn0q06dzjs94h9fbq3n1qd5zdf";
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2014-08-31 19:47:28 +01:00
|
|
|
url = "http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/fpc-2.6.0.x86_64-linux.tar";
|
|
|
|
sha256 = "0k9vi75k39y735fng4jc2vppdywp82j4qhzn7x4r6qjkad64d8lx";
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|
|
|
|
else throw "Not supported on ${stdenv.system}.";
|
2007-08-11 21:55:40 +01:00
|
|
|
|
|
|
|
builder = ./binary-builder.sh;
|
|
|
|
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Free Pascal Compiler from a binary distribution";
|
2007-08-11 21:55:40 +01:00
|
|
|
};
|
|
|
|
}
|