lol
1#!/bin/sh -e
2
3cat > sysimages.nix << "EOF"
4# This file is generated from generate-sysimages.sh. DO NOT EDIT.
5# Execute generate-sysimages.sh or fetch.sh to update the file.
6{stdenv, fetchurl, unzip}:
7
8let
9 buildSystemImage = args:
10 stdenv.mkDerivation (args // {
11 buildInputs = [ unzip ];
12 buildCommand = ''
13 mkdir -p $out
14 cd $out
15 unzip $src
16 '';
17 });
18in
19{
20EOF
21
22xsltproc generate-sysimages.xsl sys-img.xml >> sysimages.nix
23
24cat >> sysimages.nix << "EOF"
25}
26EOF