2010-07-28 04:55:54 -07:00
|
|
|
{ stdenv, fetchurl }:
|
2009-03-03 05:27:40 -08:00
|
|
|
|
2008-01-30 09:20:48 -08:00
|
|
|
stdenv.mkDerivation {
|
2014-08-31 11:47:28 -07:00
|
|
|
name = "fpc-2.6.0-binary";
|
2007-08-11 13:55:40 -07:00
|
|
|
|
2010-07-28 04:55:54 -07:00
|
|
|
src =
|
2018-08-20 12:11:29 -07:00
|
|
|
if stdenv.hostPlatform.system == "i686-linux" then
|
2010-07-28 04:55:54 -07:00
|
|
|
fetchurl {
|
2016-08-20 06:35:07 -07:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.i386-linux.tar";
|
2014-08-31 11:47:28 -07:00
|
|
|
sha256 = "08yklvrfxvk59bxsd4rh1i6s3cjn0q06dzjs94h9fbq3n1qd5zdf";
|
2010-07-28 04:55:54 -07:00
|
|
|
}
|
2018-08-20 12:11:29 -07:00
|
|
|
else if stdenv.hostPlatform.system == "x86_64-linux" then
|
2010-07-28 04:55:54 -07:00
|
|
|
fetchurl {
|
2016-08-20 06:35:07 -07:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/2.6.0/fpc-2.6.0.x86_64-linux.tar";
|
2014-08-31 11:47:28 -07:00
|
|
|
sha256 = "0k9vi75k39y735fng4jc2vppdywp82j4qhzn7x4r6qjkad64d8lx";
|
2010-07-28 04:55:54 -07:00
|
|
|
}
|
2018-08-20 12:11:29 -07:00
|
|
|
else throw "Not supported on ${stdenv.hostPlatform.system}.";
|
2007-08-11 13:55:40 -07:00
|
|
|
|
|
|
|
builder = ./binary-builder.sh;
|
|
|
|
|
|
|
|
meta = {
|
2009-03-03 05:27:40 -08:00
|
|
|
description = "Free Pascal Compiler from a binary distribution";
|
2007-08-11 13:55:40 -07:00
|
|
|
};
|
|
|
|
}
|