nixpkgs/pkgs/os-specific/linux/kvm/12.nix
Eelco Dolstra 4f12e0c849 * Assert that we're on Linux.
svn path=/nixpkgs/trunk/; revision=9060
2007-08-06 16:08:29 +00:00

20 lines
579 B
Nix

{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib}:
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "kvm-12";
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/kvm/kvm-12.tar.gz;
sha256 = "0w2w4kzir1qsapfav30bhng061570zl12ycyvpgwlx2br4s9mlmw";
};
configureFlags = "--with-patched-kernel --kerneldir=${kernelHeaders}";
# e2fsprogs is needed for libuuid.
buildInputs = [zlib e2fsprogs SDL alsaLib];
preConfigure = "for i in configure user/configure; do substituteInPlace $i --replace /bin/bash $shell; done";
}