From 66d71d2e18b94ad7e1544cf2a6f4d1d10c774431 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 15 Nov 2010 21:09:58 +0000 Subject: Restore fpc 2.4.0 - needed for Lazarus svn path=/nixpkgs/trunk/; revision=24704 --- pkgs/development/compilers/fpc/2.4.0.nix | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/development/compilers/fpc/2.4.0.nix (limited to 'pkgs') diff --git a/pkgs/development/compilers/fpc/2.4.0.nix b/pkgs/development/compilers/fpc/2.4.0.nix new file mode 100644 index 000000000000..30081c9d8050 --- /dev/null +++ b/pkgs/development/compilers/fpc/2.4.0.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, gawk }: + +let startFPC = import ./binary.nix { inherit stdenv fetchurl; }; in + +stdenv.mkDerivation rec { + version = "2.4.0"; + name = "fpc-${version}"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/sourceforge/freepascal/fpcbuild-${version}.tar.gz"; + sha256 = "1m2g2bafjixbwl5b9lna5h7r56y1rcayfnbp8kyjfd1c1ymbxaxk"; + }; + + buildInputs = [ startFPC gawk ]; + + preConfigure = + if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then '' + sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas + sed -e "s@'/lib64/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas + '' else ""; + + makeFlags = "NOGDB=1"; + + installFlags = "INSTALL_PREFIX=\${out}"; + + postInstall = '' + for i in $out/lib/fpc/*/ppc*; do + ln -fs $i $out/bin/$(basename $i) + done + mkdir -p $out/lib/fpc/etc/ + $out/lib/fpc/*/samplecfg $out/lib/fpc/${version} $out/lib/fpc/etc/ + ''; + + meta = { + description = "Free Pascal Compiler from a source distribution"; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} -- cgit 1.4.1