at 15.09-beta 34 lines 971 B view raw
1{ stdenv, fetchurl, pkgconfig, libxml2, perl }: 2 3let 4 name = "libsmbios-2.2.28"; 5in 6stdenv.mkDerivation { 7 inherit name; 8 9 src = fetchurl { 10 url = "http://linux.dell.com/libsmbios/download/libsmbios/${name}/${name}.tar.gz"; 11 sha256 = "03m0n834w49acwbf5cf9ync1ksnn2jkwaysvy7584y60qpmngb91"; 12 }; 13 14 buildInputs = [ pkgconfig libxml2 perl ]; 15 16 # It tries to install some Python stuff even when Python is disabled. 17 installFlags = "pkgpythondir=$(TMPDIR)/python"; 18 19 # It forgets to install headers. 20 postInstall = 21 '' 22 cp -va "src/include/"* "$out/include/" 23 cp -va "out/public-include/"* "$out/include/" 24 ''; 25 26 meta = { 27 homepage = "http://linux.dell.com/libsmbios/main"; 28 description = "a library to obtain BIOS information"; 29 license = stdenv.lib.licenses.gpl2Plus; # alternatively, under the Open Software License version 2.1 30 31 platforms = stdenv.lib.platforms.linux; 32 maintainers = [ stdenv.lib.maintainers.simons ]; 33 }; 34}