lol
at 16.09-beta 38 lines 1.0 kB view raw
1{ fetchurl, stdenv, gettext, glibc }: 2 3stdenv.mkDerivation rec { 4 name = "libelf-0.8.13"; 5 6 src = fetchurl { 7 url = "http://www.mr511.de/software/${name}.tar.gz"; 8 sha256 = "0vf7s9dwk2xkmhb79aigqm0x0yfbw1j0b9ksm51207qwr179n6jr"; 9 }; 10 11 doCheck = true; 12 13 # FIXME needs gcc 4.9 in bootstrap tools 14 hardeningDisable = [ "stackprotector" ]; 15 16 # For cross-compiling, native glibc is needed for the "gencat" program. 17 crossAttrs = { 18 nativeBuildInputs = [ gettext glibc ]; 19 }; 20 21 # Libelf's custom NLS macros fail to determine the catalog file extension on 22 # Darwin, so disable NLS for now. 23 # FIXME: Eventually make Gettext a build input on all platforms. 24 configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-nls"; 25 26 nativeBuildInputs = [ gettext ]; 27 28 meta = { 29 description = "ELF object file access library"; 30 31 homepage = http://www.mr511.de/software/english.html; 32 33 license = stdenv.lib.licenses.lgpl2Plus; 34 35 platforms = stdenv.lib.platforms.all; 36 maintainers = [ ]; 37 }; 38}