lol
1{ fetchsvn, stdenv, gnum4, tet }:
2
3stdenv.mkDerivation (rec {
4 version = "3258";
5 name = "libelf-freebsd-${version}";
6
7 src = fetchsvn {
8 url = svn://svn.code.sf.net/p/elftoolchain/code/trunk;
9 rev = (stdenv.lib.strings.toInt version);
10 name = "elftoolchain-${version}";
11 };
12
13 buildInputs = [ gnum4 tet ];
14
15 buildPhase = ''
16 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
17 cp -vr ${tet} test/tet/tet3.8
18 chmod -R a+w test/tet/tet3.8
19 make libelf
20 '';
21
22 installPhase = ''
23 cp -vr libelf $out
24 cp -vr common/. $out/
25 '';
26
27 meta = {
28 description = "Essential compilation tools and libraries for building and analyzing ELF based program images";
29
30 homepage = https://sourceforge.net/p/elftoolchain/wiki/Home/;
31
32 license = stdenv.lib.licenses.bsd2;
33
34 platforms = stdenv.lib.platforms.freebsd;
35 maintainers = [ ];
36 };
37})