]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Refetch nixpkgs when running nix-info
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 1 Jul 2019 20:06:00 +0000 (22:06 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:26 +0000 (00:04 +0200)
Makefile

index d17ef1911f04d077646d576491eb77acec9fd854..26dd47edf042cb9f1792d1fe1fc3640904b2cff0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ env-dry-run:
        ./scripts/make-env --dry-run
 
 nix-info:
-       @version=$$(nix eval --raw nixpkgs.lib.version) && \
+       @version=$$(nix eval --option tarball-ttl 1 --raw nixpkgs.lib.version) && \
          mainversion=$$(echo $$version | cut -d"." -f -2) && \
          echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \
          nix-instantiate --find-file nixpkgs