2021-02-24 14:24:51 -08:00
|
|
|
{ lib, fetchsvn, stdenv, gnum4, tet }:
|
2015-11-26 09:33:58 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
version = "3258";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libelf-freebsd";
|
2015-11-26 09:33:58 -08:00
|
|
|
|
|
|
|
src = fetchsvn {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "svn://svn.code.sf.net/p/elftoolchain/code/trunk";
|
2021-01-21 09:00:13 -08:00
|
|
|
rev = (lib.strings.toInt version);
|
2015-11-28 07:06:15 -08:00
|
|
|
name = "elftoolchain-${version}";
|
2021-03-02 08:10:43 -08:00
|
|
|
sha256 = "1rcmddjanlsik0b055x8k914r9rxs8yjsvslia2nh1bhzf1lxmqz";
|
2015-11-26 09:33:58 -08:00
|
|
|
};
|
|
|
|
|
FreeBSD: apr-util, cyrus-sasl, berkeley db, glib, gnutls, kerberos, libelf-freebsd, openldap, serf, guile, tet, shishi, gawk, gnugrep
2015-11-27 16:46:00 -08:00
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2015-11-26 09:33:58 -08:00
|
|
|
meta = {
|
|
|
|
description = "Essential compilation tools and libraries for building and analyzing ELF based program images";
|
|
|
|
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://sourceforge.net/p/elftoolchain/wiki/Home/";
|
2015-11-26 09:33:58 -08:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
license = lib.licenses.bsd2;
|
2015-11-26 09:33:58 -08:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
platforms = lib.platforms.freebsd;
|
2015-11-26 09:33:58 -08:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
})
|