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