mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
fix: nix-index-update
This commit is contained in:
@@ -394,17 +394,12 @@ in rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nix-index-update = pkgs.writers.writeDashBin "nix-index-update" ''
|
nix-index-update = pkgs.writers.writeDashBin "nix-index-update" ''
|
||||||
mkdir -p $HOME/.cache/nix-index
|
filename="index-x86_64-$(uname | tr A-Z a-z)"
|
||||||
tag=$(git -c 'versionsort.suffix=-' \
|
mkdir -p ~/.cache/nix-index
|
||||||
ls-remote \
|
cd ~/.cache/nix-index
|
||||||
--exit-code \
|
# -N will only download a new version if there is an update.
|
||||||
--refs \
|
${pkgs.wget}/bin/wget -q -N https://github.com/Mic92/nix-index-database/releases/latest/download/$filename
|
||||||
--tags \
|
ln -f $filename files
|
||||||
--sort='v:refname' \
|
|
||||||
https://github.com/Mic92/nix-index-database \
|
|
||||||
| awk 'END {match($2, /([^/]+)$/, m); print m[0]}')
|
|
||||||
curl -L "https://github.com/Mic92/nix-index-database/releases/download/$tag/files" -o $XDG_RUNTIME_DIR/files-$tag
|
|
||||||
mv $XDG_RUNTIME_DIR/files-$tag $HOME/.cache/nix-index/files
|
|
||||||
'';
|
'';
|
||||||
} // {
|
} // {
|
||||||
devour = pkgs.callPackage <niveum/packages/devour.nix> { };
|
devour = pkgs.callPackage <niveum/packages/devour.nix> { };
|
||||||
|
|||||||
Reference in New Issue
Block a user