forked from mirrors/nixpkgs
Added dmidecode and kqemu
svn path=/nixpkgs/trunk/; revision=10098
This commit is contained in:
parent
fc345ae130
commit
c0ce72bfc2
22
pkgs/os-specific/linux/dmidecode/2.9.nix
Normal file
22
pkgs/os-specific/linux/dmidecode/2.9.nix
Normal 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.
|
||||
";
|
||||
};
|
||||
}
|
30
pkgs/os-specific/linux/kqemu/1.3.0pre11.nix
Normal file
30
pkgs/os-specific/linux/kqemu/1.3.0pre11.nix
Normal 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
|
||||
";
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue