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 {
|
2010-01-14 08:00:50 +00:00
|
|
|
name = "fpc-2.4.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 {
|
|
|
|
url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar";
|
|
|
|
sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv";
|
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar";
|
|
|
|
sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z";
|
|
|
|
}
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|