607b0d3e80
find . -name "*.nix" | while read fn; do sed 's^http://[a-z]*.dl.sourceforge.net/sourceforge/^mirror://sourceforge/^g' < $fn > $fn.new; mv $fn.new $fn; done svn path=/nixpkgs/trunk/; revision=9198
19 lines
555 B
Nix
19 lines
555 B
Nix
{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "kvm-12";
|
|
|
|
src = fetchurl {
|
|
url = mirror://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";
|
|
}
|