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