Added dmidecode and kqemu

svn path=/nixpkgs/trunk/; revision=10098
This commit is contained in:
Michael Raskin 2008-01-08 00:18:20 +00:00
parent fc345ae130
commit c0ce72bfc2
4 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,22 @@
args : with args;
with builderDefs {
src = /* put a fetchurl here */
fetchurl {
url = http://download.savannah.gnu.org/releases/dmidecode/dmidecode-2.9.tar.bz2;
sha256 = "05g0ln400fhqjspg9h4x0a1dvmwiyjq5rk9q9kimxvywbg1b53l8";
};
buildInputs = [];
configureFlags = [];
makeFlags = "prefix=\$out";
} null; /* null is a terminator for sumArgs */
stdenv.mkDerivation rec {
name = "dmidecode-"+version;
builder = writeScript (name + "-builder")
(textClosure [ doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Tool to decode Desktop Management Interface and SBIOS data.
";
};
}

View File

@ -0,0 +1,30 @@
args : with args;
with builderDefs {
src = /* put a fetchurl here */
fetchurl {
url = http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre11.tar.gz;
sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl";
};
buildInputs = [];
configureFlags = [''--prefix=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)''];
} null; /* null is a terminator for sumArgs */
let
debugStep = FullDepEntry (''
cat config-host.mak
'') [minInit];
preConfigure = FullDepEntry (''
sed -e '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh
sed -e '/depmod/d' -i install.sh
cat install.sh
'') [minInit doUnpack];
in
stdenv.mkDerivation rec {
name = "kqemu-"+version;
builder = writeScript (name + "-builder")
(textClosure [preConfigure doConfigure debugStep doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Kernel module for Qemu acceleration
";
};
}

View File

@ -13,6 +13,7 @@ cd $out/
for i in $moduleSources; do
lndir $i/
done
rm -rf nix-support
cd lib/modules/
rm */modules.*
MODULE_DIR=$PWD/ depmod -a

View File

@ -3013,6 +3013,14 @@ rec {
static = true;
}));
dmidecodeFun = lib.sumArgs (selectVersion ../os-specific/linux/dmidecode) {
inherit fetchurl stdenv builderDefs;
};
dmidecode = dmidecodeFun {
version = "2.9";
} null;
dietlibc = import ../os-specific/linux/dietlibc {
inherit fetchurl glibc;
# Dietlibc 0.30 doesn't compile on PPC with GCC 4.1, bus GCC 3.4 works.
@ -3309,6 +3317,16 @@ rec {
[(getConfig ["kernel" "addConfig"] "")];
};
kqemuFun = lib.sumArgs (selectVersion ../os-specific/linux/kqemu) {
inherit fetchurl stdenv builderDefs;
};
# No finished expression is provided - pick your own kernel
kqemuFunCurrent = theKernel: (kqemuFun {
version = "1.3.0pre11";
kernel = theKernel;
} null);
libselinux = import ../os-specific/linux/libselinux {
inherit fetchurl stdenv libsepol;
};