2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2020-04-01 22:39:28 +02:00
|
|
|
name = "fpc-3.0.0-binary";
|
2007-08-11 22:55:40 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src =
|
2018-08-20 21:11:29 +02:00
|
|
|
if stdenv.hostPlatform.system == "i686-linux" then
|
2010-07-28 13:55:54 +02:00
|
|
|
fetchurl {
|
2020-04-01 22:39:28 +02:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/3.0.0/fpc-3.0.0.i386-linux.tar";
|
|
|
|
sha256 = "0h3f1dgs1zsx7vvk9kg67anjvgw5sslfbmjblif7ishbcp3k3g5k";
|
2010-07-28 13:55:54 +02:00
|
|
|
}
|
2018-08-20 21:11:29 +02:00
|
|
|
else if stdenv.hostPlatform.system == "x86_64-linux" then
|
2010-07-28 13:55:54 +02:00
|
|
|
fetchurl {
|
2020-04-01 22:39:28 +02:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/3.0.0/fpc-3.0.0.x86_64-linux.tar";
|
|
|
|
sha256 = "1m2xx3nda45cb3zidbjgdr8kddd19zk0khvp7xxdlclszkqscln9";
|
2010-07-28 13:55:54 +02:00
|
|
|
}
|
2018-08-20 21:11:29 +02:00
|
|
|
else throw "Not supported on ${stdenv.hostPlatform.system}.";
|
2007-08-11 22:55:40 +02:00
|
|
|
|
|
|
|
builder = ./binary-builder.sh;
|
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Free Pascal Compiler from a binary distribution";
|
2007-08-11 22:55:40 +02:00
|
|
|
};
|
|
|
|
}
|