diff options
Diffstat (limited to 'pkgs/development/libraries/libelf-freebsd/default.nix')
-rw-r--r-- | pkgs/development/libraries/libelf-freebsd/default.nix | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/libraries/libelf-freebsd/default.nix b/pkgs/development/libraries/libelf-freebsd/default.nix index ee0b6d50408..3e09d4c6cd4 100644 --- a/pkgs/development/libraries/libelf-freebsd/default.nix +++ b/pkgs/development/libraries/libelf-freebsd/default.nix @@ -1,20 +1,28 @@ -{ fetchsvn, stdenv }: +{ fetchsvn, stdenv, gnum4, tet }: stdenv.mkDerivation (rec { version = "3258"; name = "libelf-freebsd-${version}"; - #src = fetchurl { - # url = "http://sourceforge.net/code-snapshots/svn/e/el/elftoolchain/code/elftoolchain-code-${version}-trunk.zip"; - # sha256 = "0vf7s9dwk2xkmhb79aigqm0x0yfbw1j0b9ksm51207qwr179n6jr"; - #}; src = fetchsvn { - url = svn://svn.code.sf.net/p/elftoolchain/code/trunk ; - rev = 3258; + url = svn://svn.code.sf.net/p/elftoolchain/code/trunk; + rev = (stdenv.lib.strings.toInt version); }; - doCheck = true; - + buildInputs = [ gnum4 tet ]; + + buildPhase = '' + PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:$PATH # use BSD install(1) instead of coreutils and make(1) instead of GNU Make + cp -vr ${tet} test/tet/tet3.8 + chmod -R a+w test/tet/tet3.8 + make libelf + ''; + + installPhase = '' + cp -vr libelf $out + cp -vr common/. $out/ + ''; + meta = { description = "Essential compilation tools and libraries for building and analyzing ELF based program images"; |