* Purify aangifte2005. Now we can do our taxes in NixOS ;-)

svn path=/nixpkgs/trunk/; revision=4980
This commit is contained in:
Eelco Dolstra 2006-03-03 22:31:16 +00:00
parent 85252cbcfd
commit 0d299bc2f7
4 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,9 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "patchelf-0.2pre4979";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/nix/patchelf-0.2pre4979/patchelf-0.2pre4979.tar.bz2;
md5 = "d45a5a8e13fcef951556d351cc7a64a0";
};
}

View File

@ -3,9 +3,12 @@ source $stdenv/setup
buildPhase=buildPhase
buildPhase() {
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
# for i in bin/*; do
# patchelf --set-interpreter $glibc/lib/ld-linux.so.* $i
# done
for i in bin/*; do
patchelf \
--set-interpreter $glibc/lib/ld-linux.so.* \
--set-rpath $libX11/lib:$libXext/lib \
$i
done
}
installPhase=installPhase

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, patchelf, libX11, libXext}:
stdenv.mkDerivation {
name = "aangifte2005-1";
@ -9,5 +9,6 @@ stdenv.mkDerivation {
md5 = "9cc709b8ad041f4b20154ff1491d0436";
};
# buildInputs = [pkgconfig gtk libpng];
buildInputs = [patchelf];
inherit libX11 libXext;
}

View File

@ -346,6 +346,10 @@ rec {
inherit fetchurl stdenv;
};
patchelfNew = (import ../development/tools/misc/patchelf/new.nix) {
inherit fetchurl stdenv;
};
gnum4 = (import ../development/tools/misc/gnum4) {
inherit fetchurl stdenv;
};
@ -2321,6 +2325,8 @@ rec {
aangifte2005 = import ../evil/belastingdienst {
inherit stdenv fetchurl;
inherit (xlibs) libX11 libXext;
patchelf = patchelfNew;
};
}