# Pastebin rLNlOVul { pkgs ? import ./nixpkgs.nix , ciNix , url , sha , stdenv ? pkgs.stdenv , lib ? pkgs.lib }: with builtins; let ci = ciNix {}; nixConfig = import ; in derivation { name = "run-ci"; __structuredAttrs = true; PATH = nixConfig.coreutils; system = currentSystem; builder = nixConfig.shell; args = [ "-e" (builtins.toFile "ci-builder.sh" '' source .attrs.sh eval "$buildCommand" '') ]; inherit ci; buildCommand = '' set -ex out="''${outputs[out]}" mkdir $out for key in "''${!ci[@]}"; do mkdir $out/$key ln -s "''${ci[$key]}" $out/$key/result done ''; }