2012-11-07 20:10:39 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2013-07-31 17:56:27 +01:00
|
|
|
cat > sysimages.nix << "EOF"
|
2015-05-02 14:15:29 +01: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 17:56:27 +01: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 18:18:30 +01:00
|
|
|
xsltproc generate-sysimages.xsl sys-img.xml >> sysimages.nix
|
2013-07-31 17:56:27 +01:00
|
|
|
|
|
|
|
cat >> sysimages.nix << "EOF"
|
|
|
|
}
|
|
|
|
EOF
|