Experiment
This commit is contained in:
parent
041e989785
commit
83df3e21a5
2 changed files with 39 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
{inputs, ...}: {
|
{inputs, config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.hercules-ci-effects.flakeModule
|
inputs.hercules-ci-effects.flakeModule
|
||||||
];
|
];
|
||||||
|
@ -16,5 +16,16 @@
|
||||||
hour = 13;
|
hour = 13;
|
||||||
dayOfWeek = ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"];
|
dayOfWeek = ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"];
|
||||||
};
|
};
|
||||||
|
pullRequestBody = ''
|
||||||
|
Update `flake.lock`. See the commit message(s) for details.
|
||||||
|
|
||||||
|
You may reset this branch by deleting it and re-running the update job. xs
|
||||||
|
|
||||||
|
git push origin :${config.hercules-ci.flake-update.updateBranch}
|
||||||
|
|
||||||
|
```
|
||||||
|
${builtins.readFile config.packages.x86_64-linux.diff-closures}
|
||||||
|
```
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,16 +4,34 @@
|
||||||
self',
|
self',
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
packages.diff-closures = pkgs.writeShellApplication {
|
packages.diff-closures = let
|
||||||
name = "diff-closures";
|
diff-closures-script = pkgs.writeText "diff-closures-script" ''
|
||||||
runtimeInputs = [pkgs.ansifilter];
|
echo ciao
|
||||||
text = ''
|
export NIX_SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
|
||||||
nix store diff-closures --derivation \
|
# nix --extra-experimental-features "nix-command flakes" \
|
||||||
github:aciceri/emacs/master#ccrEmacs \
|
# store diff-closures --derivation \
|
||||||
"${inputs.self}#ccrEmacs" \
|
# github:aciceri/emacs/master#ccrEmacs \
|
||||||
| ansifilter --text
|
# "${inputs.self}#ccrEmacs" \
|
||||||
|
# | ${pkgs.ansifilter}/bin/ansifilter --text
|
||||||
|
'';
|
||||||
|
in pkgs.runCommandNoCC
|
||||||
|
"diff-closures"
|
||||||
|
{
|
||||||
|
__impure = true;
|
||||||
|
}
|
||||||
|
''
|
||||||
|
${pkgs.bubblewrap}/bin/bwrap \
|
||||||
|
--dir /run \
|
||||||
|
--dev /dev \
|
||||||
|
--bind /build /build \
|
||||||
|
--bind /proc /proc \
|
||||||
|
--bind /etc /etc \
|
||||||
|
--chdir /build \
|
||||||
|
--setenv PATH "${pkgs.nixVersions.nix_2_14}/bin:${pkgs.busybox}/bin" \
|
||||||
|
--ro-bind /nix/store /nix/store \
|
||||||
|
--share-net \
|
||||||
|
${pkgs.bash}/bin/bash ${diff-closures-script} > $out
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
apps.diff-closures.program = "${self'.packages.diff-closures}/bin/diff-closures";
|
apps.diff-closures.program = "${self'.packages.diff-closures}/bin/diff-closures";
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue