The Aldor source received several changes including a new build system and I
think a recreation of the git repository since being liberated a couple of
weeks ago. Attached is a patch updating the nixpkgs expression so Aldor will
build again.
>From 74c9eb9a19c958dbe5782607933e33b316e20205 Mon Sep 17 00:00:00 2001
From: Karn Kallio <[email protected]>
Date: Wed, 24 Jul 2013 15:03:45 -0430
Subject: [PATCH] aldor: update to work with new build system.
---
pkgs/development/compilers/aldor/default.nix | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/pkgs/development/compilers/aldor/default.nix b/pkgs/development/compilers/aldor/default.nix
index 25d1a2c..fcd0c9f 100644
--- a/pkgs/development/compilers/aldor/default.nix
+++ b/pkgs/development/compilers/aldor/default.nix
@@ -1,4 +1,5 @@
-{ fetchgit, stdenv, gmp, which, flex, bison, makeWrapper }:
+{ fetchgit, stdenv, gmp, which, flex, bison, makeWrapper
+, autoconf, automake, libtool, openjdk, perl }:
stdenv.mkDerivation {
name = "aldor-1.1.0";
@@ -6,21 +7,22 @@ stdenv.mkDerivation {
src = fetchgit {
url = "https://github.com/pippijn/aldor";
sha256 = "14xv3jl15ib2knsdz0bd7jx64zg1qrr33q5zcr8gli860ps8gkg3";
- rev = "a02b088c8d5d06f16c50a83ddee4019e962d6673";
+ rev = "f7b95835cf709654744441ddb1c515bfc2bec998";
};
- buildInputs = [ gmp which flex bison makeWrapper ];
+ buildInputs = [ gmp which flex bison makeWrapper autoconf automake libtool
+ openjdk perl ];
- installPhase = ''
- for d in bin include lib ;
- do
- ensureDir $out/$d ;
- cp -r build/$d $out/ ;
- done
+ preConfigure = ''
+ cd aldor ;
+ ./autogen.sh ;
+ '';
- for prog in aldor unicl zacc ;
+ postInstall = ''
+ for prog in aldor unicl javagen ;
do
wrapProgram $out/bin/$prog --set ALDORROOT $out \
+ --prefix PATH : ${openjdk}/bin \
--prefix PATH : ${stdenv.gcc}/bin ;
done
'';
--
1.8.3.2
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev