depot/third_party/nixpkgs/pkgs/development/libraries/libelf-freebsd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
945 B
Nix

{ 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 = (stdenv.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 = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.freebsd;
maintainers = [ ];
};
})