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 {
|
2020-04-01 21:39:28 +01:00
|
|
|
name = "fpc-3.0.0-binary";
|
2007-08-11 21:55:40 +01:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src =
|
2018-08-20 20:11:29 +01:00
|
|
|
if stdenv.hostPlatform.system == "i686-linux" then
|
2010-07-28 12:55:54 +01:00
|
|
|
fetchurl {
|
2020-04-01 21:39:28 +01:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/3.0.0/fpc-3.0.0.i386-linux.tar";
|
|
|
|
sha256 = "0h3f1dgs1zsx7vvk9kg67anjvgw5sslfbmjblif7ishbcp3k3g5k";
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|
2018-08-20 20:11:29 +01:00
|
|
|
else if stdenv.hostPlatform.system == "x86_64-linux" then
|
2010-07-28 12:55:54 +01:00
|
|
|
fetchurl {
|
2020-04-01 21:39:28 +01:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/3.0.0/fpc-3.0.0.x86_64-linux.tar";
|
|
|
|
sha256 = "1m2xx3nda45cb3zidbjgdr8kddd19zk0khvp7xxdlclszkqscln9";
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|
2018-08-20 20:11:29 +01:00
|
|
|
else throw "Not supported on ${stdenv.hostPlatform.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
|
|
|
};
|
|
|
|
}
|