mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
14 lines
354 B
Nix
14 lines
354 B
Nix
{
|
|
writers,
|
|
wget,
|
|
system,
|
|
}:
|
|
writers.writeDashBin "nix-index-update" ''
|
|
filename="index-${system}"
|
|
mkdir -p ~/.cache/nix-index
|
|
cd ~/.cache/nix-index
|
|
# -N will only download a new version if there is an update.
|
|
${wget}/bin/wget -q -N https://github.com/Mic92/nix-index-database/releases/latest/download/$filename
|
|
ln -f $filename files
|
|
''
|