mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
27 lines
566 B
Bash
Executable File
27 lines
566 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 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
|