blob: 41b440a48985d91e219b0bca104436a74bcad215 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ stdenv, fetchurl, pkgconfig, libxml2, perl }:
stdenv.mkDerivation rec {
name = "libsmbios-2.2.19";
src = fetchurl {
url = "http://linux.dell.com/libsmbios/download/libsmbios/${name}/${name}.tar.gz";
sha256 = "0f4wnjml734ssg583r448ypax7vf3f9n8gybzvzg170lc3byayhv";
};
buildInputs = [ pkgconfig libxml2 perl ];
# It tries to install some Python stuff even when Python is disabled.
installFlags = "pkgpythondir=$(TMPDIR)/python";
# It forgets to install headers.
postInstall =
''
cp -a src/include/* $out/include
cp -a out/public-include/* $out/include
''; # */
meta = {
homepage = http://linux.dell.com/libsmbios/main/index.html;
description = "A library to obtain BIOS information";
license = "GPLv2+"; # alternatively, under the Open Software License version 2.1
};
}
|