1
0
Fork 0

forgejo-runner: install nix-update

This commit is contained in:
Daniel Kempkens 2023-12-16 19:21:49 +01:00
parent 9c35d72d5f
commit f54009fa6e
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -5,9 +5,23 @@
let
forgejoUrl = "https://git.kempkens.io";
storeDepsBins = [
pkgs.attic-client
pkgs.coreutils
pkgs.findutils
pkgs.gnugrep
pkgs.gawk
pkgs.git
pkgs.nixVersions.stable
pkgs.nix-update
pkgs.bash
pkgs.jq
pkgs.nodejs
];
storeDeps = pkgs.runCommand "store-deps" { } ''
mkdir -p $out/bin
for dir in ${toString [ pkgs.attic-client pkgs.coreutils pkgs.findutils pkgs.gnugrep pkgs.gawk pkgs.git pkgs.nixVersions.stable pkgs.bash pkgs.jq pkgs.nodejs ]}; do
for dir in ${toString storeDepsBins}; do
for bin in "$dir"/bin/*; do
ln -s "$bin" "$out/bin/$(basename "$bin")"
done