2012-11-07 20:10:39 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2013-07-31 16:56:27 +00:00
|
|
|
cat > sysimages.nix << "EOF"
|
2015-05-02 13:15:29 +00:00
|
|
|
# This file is generated from generate-sysimages.sh. DO NOT EDIT.
|
|
|
|
# Execute generate-sysimages.sh or fetch.sh to update the file.
|
2013-07-31 16:56:27 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
let
|
|
|
|
buildSystemImage = args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cd $out
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
EOF
|
|
|
|
|
2014-09-02 17:18:30 +00:00
|
|
|
xsltproc generate-sysimages.xsl sys-img.xml >> sysimages.nix
|
2013-07-31 16:56:27 +00:00
|
|
|
|
|
|
|
cat >> sysimages.nix << "EOF"
|
|
|
|
}
|
|
|
|
EOF
|