nixpkgs/pkgs/os-specific/linux/libsmbios/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

37 lines
1.0 KiB
Nix

{ stdenv, fetchurl, pkgconfig, libxml2, perl, autoreconfHook, doxygen }:
let
version = "2.3.2";
in
stdenv.mkDerivation {
name = "libsmbios-${version}";
src = fetchurl {
url = "https://github.com/dell/libsmbios/archive/v${version}.tar.gz";
sha256 = "0kvi36jrvhspyyq0pjfdyvzvimdn27fvbdpf429qm3xdmfi78y2j";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libxml2 perl doxygen ];
# It tries to install some Python stuff even when Python is disabled.
installFlags = "pkgpythondir=$(TMPDIR)/python";
postInstall =
''
mkdir -p $out/include
cp -va "src/include/"* "$out/include/"
cp -va "out/public-include/"* "$out/include/"
'';
# Hack to avoid TMPDIR in RPATHs.
preFixup = ''rm -rf "$(pwd)" '';
meta = {
homepage = http://linux.dell.com/libsmbios/main;
description = "A library to obtain BIOS information";
license = stdenv.lib.licenses.gpl2Plus; # alternatively, under the Open Software License version 2.1
platforms = [ "i686-linux" "x86_64-linux" ];
};
}