2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2009-03-03 13:27:40 +00:00
|
|
|
|
2020-09-03 11:49:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fpc-binary";
|
|
|
|
version = "3.2.0";
|
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-09-03 11:49:11 +01:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/${version}/fpc-${version}.i386-linux.tar";
|
|
|
|
sha256 = "0y0510b2fbxbqz28967xx8b023k6q9fv5yclfrc1yc9mg8fyn411";
|
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-09-03 11:49:11 +01:00
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/${version}/fpc-${version}-x86_64-linux.tar";
|
|
|
|
sha256 = "0gfbwjvjqlx0562ayyl08khagslrws758al2yhbi4bz5rzk554ni";
|
2010-07-28 12:55:54 +01:00
|
|
|
}
|
2020-09-03 11:51:31 +01:00
|
|
|
else if stdenv.hostPlatform.system == "aarch64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/freepascal/Linux/${version}/fpc-${version}.aarch64-linux.tar";
|
|
|
|
sha256 = "1h481ngg3m8nlsg9mw7rr1bn2c4sj4wzqny9bxyq3xvcral12r71";
|
|
|
|
}
|
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
|
|
|
};
|
2020-09-03 11:49:11 +01:00
|
|
|
}
|