1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/tools/system/vbetool/default.nix
Michael Raskin e618a80968 Adding vbetool
svn path=/nixpkgs/trunk/; revision=17952
2009-10-24 19:58:07 +00:00

32 lines
693 B
Nix

a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
libx86 pciutils zlib
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["fixPCIref" "doConfigure" "doMakeInstall"];
fixPCIref = a.fullDepEntry (''
sed -e 's@$(libdir)/libpci.a@${a.pciutils}/lib/libpci.so@' -i Makefile.in
export NIX_LDFLAGS="$NIX_LDFLAGS -lpci"
'') ["doUnpack" "minInit"];
meta = {
description = "Video BIOS execution tool";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
};
}