diff options
Diffstat (limited to 'pkgs/tools/system/vbetool/default.nix')
-rw-r--r-- | pkgs/tools/system/vbetool/default.nix | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/pkgs/tools/system/vbetool/default.nix b/pkgs/tools/system/vbetool/default.nix index 402f93ec8fba..a8c27a42b1dd 100644 --- a/pkgs/tools/system/vbetool/default.nix +++ b/pkgs/tools/system/vbetool/default.nix @@ -1,31 +1,26 @@ -a @ {pciutils, libx86, zlib, ...} : -let - s = import ./src-for-default.nix; - buildInputs = with a; [ - libx86 pciutils zlib - ]; -in -rec { - src = a.fetchUrlFromSrcInfo s; +{ stdenv, fetchurl, pciutils, libx86, zlib }: - inherit (s) name; - inherit buildInputs; - configureFlags = []; +stdenv.mkDerivation rec { + name = "vbetool-${version}"; + version = "1.1"; - /* doConfigure should be removed if not needed */ - phaseNames = ["fixPCIref" "doConfigure" "doMakeInstall"]; + src = fetchurl { + url = "http://www.codon.org.uk/~mjg59/vbetool/download/${name}.tar.gz"; + sha256 = "0m7rc9v8nz6w9x4x96maza139kin6lg4hscy6i13fna4672ds9jd"; + }; + + buildInputs = [ pciutils libx86 zlib ]; + + patchPhase = '' + substituteInPlace Makefile.in --replace '$(libdir)/libpci.a' "" + ''; - 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"]; + configureFlags = [ "LDFLAGS=-lpci" ]; - meta = { + meta = with stdenv.lib; { description = "Video BIOS execution tool"; - maintainers = [ - a.lib.maintainers.raskin - ]; - platforms = with a.lib.platforms; - linux; + homepage = http://www.codon.org.uk/~mjg59/vbetool/; + maintainers = [ maintainers.raskin ]; + platforms = platforms.linux; }; } |