2012-11-07 20:10:39 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2013-07-31 16:56:27 +00:00
|
|
|
cat > sysimages.nix << "EOF"
|
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
let
|
|
|
|
buildSystemImage = args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cd $out
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
EOF
|
|
|
|
|
|
|
|
xsltproc generate-sysimages.xsl repository-8.xml >> sysimages.nix
|
|
|
|
xsltproc --stringparam abi x86 generate-sysimages-others.xsl sys-img-x86.xml >> sysimages.nix
|
|
|
|
xsltproc --stringparam abi mips generate-sysimages-others.xsl sys-img-mips.xml >> sysimages.nix
|
|
|
|
|
|
|
|
cat >> sysimages.nix << "EOF"
|
|
|
|
}
|
|
|
|
EOF
|