diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix b/nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix new file mode 100644 index 000000000000..c3a4986c8321 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix @@ -0,0 +1,37 @@ +{ fetchsvn, stdenv, gnum4, tet }: + +stdenv.mkDerivation (rec { + version = "3258"; + pname = "libelf-freebsd"; + + src = fetchsvn { + url = "svn://svn.code.sf.net/p/elftoolchain/code/trunk"; + rev = (lib.strings.toInt version); + name = "elftoolchain-${version}"; + }; + + 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"; + + homepage = "https://sourceforge.net/p/elftoolchain/wiki/Home/"; + + license = lib.licenses.bsd2; + + platforms = lib.platforms.freebsd; + maintainers = [ ]; + }; +}) |