mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
25 lines
371 B
Bash
Executable File
25 lines
371 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
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 sys-img.xml >> sysimages.nix
|
|
|
|
cat >> sysimages.nix << "EOF"
|
|
}
|
|
EOF
|