diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-23 21:05:42 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:26 +0200 |
commit | 2e5c081c473a8b5951f28a916d625ab5bb46c7c5 (patch) | |
tree | a54309c04db949a9be008c26c3cdacc819d4076d | |
parent | debc5fae3b06ef915db9465db4599d4821f658fc (diff) | |
download | NUR-2e5c081c473a8b5951f28a916d625ab5bb46c7c5.tar.gz NUR-2e5c081c473a8b5951f28a916d625ab5bb46c7c5.tar.zst NUR-2e5c081c473a8b5951f28a916d625ab5bb46c7c5.zip |
Use nix-instantiate to get nixpkgs location
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ nix-info: | |||
23 | @version=$$(nix eval --raw nixpkgs.lib.version) && \ | 23 | @version=$$(nix eval --raw nixpkgs.lib.version) && \ |
24 | mainversion=$$(echo $$version | cut -d"." -f -2) && \ | 24 | mainversion=$$(echo $$version | cut -d"." -f -2) && \ |
25 | echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \ | 25 | echo "https://releases.nixos.org/nixos/$$mainversion/nixos-$$version/nixexprs.tar.xz" && \ |
26 | nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4 | 26 | nix-instantiate --find-file nixpkgs |
27 | 27 | ||
28 | nix-info-nixops: | 28 | nix-info-nixops: |
29 | @$(MAKE) --no-print-directory -C nixops/ nix-info | 29 | @$(MAKE) --no-print-directory -C nixops/ nix-info |