-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --include-build-refs to `nix path-info' command #3523
Commits on Apr 16, 2020
-
Add --include-ifd option to nix-instantiate
This allows use you to get all drvs that your Nix expression references. Output looks like this: $ nix-instantiate --include-ifd warning: you did not specify '--add-root'; the result might be removed by the garbage collector /nix/store/xvplw4i56ys3j1lk4bxnr8r4725rb6c8-bauer-1.5.0.drv /nix/store/nk7j41ldlq39lmmsg5v1mlwwwpnqnbgk-README.drv /nix/store/pp84r1z7j7aqqarbwkq55h5asy35rs15-package-list.drv This can be piped put into nix-store to get all outputs needed: $ nix-store -qR --include-outputs $(nix-instantiate --include-ifd) /nix/store/00crwk6z71l36av0gspzi0z410h8fq1r-libXtst-1.2.3.tar.bz2 /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh /nix/store/58y89v7rl254dc2cygcfd5wzhv0kjm4m-bash44-013.drv /nix/store/7c0yirypq720qgj2clyanqp3b18h1lj0-bison-3.4.2.tar.gz.drv /nix/store/b7irlwi2wjlx5aj1dghx4c8k3ax6m56q-busybox.drv /nix/store/c0sr4qdy8halrdrh5dpm7hj05c6hyssa-unpack-bootstrap-tools.sh /nix/store/drsdq2ca1q1dj1hd0r1w2hl4s0fak1vh-bootstrap-tools.tar.xz.drv /nix/store/bfil786fxmnjcwc7mqpm0mk4xnm2cphg-bootstrap-tools.drv ...
Configuration menu - View commit details
-
Copy full SHA for 7ccc02b - Browse repository at this point
Copy the full SHA 7ccc02bView commit details
Commits on Apr 22, 2020
-
This print out all of the store paths referenced in the Nix expression. Examples provided in --help. This is useful with tools like cachix, and replace the previous usages of: $ nix-store -qR --include-outputs $(nix-instantiate '<nixpkgs>' -A hello) which now become: $ nix refs --build --run nixpkgs.hello which can be piped into cachix like: $ nix refs --build --run nixpkgs.hello | cachix push my-cache Related to cachix/cachix#52 and NixOS#3506
Configuration menu - View commit details
-
Copy full SHA for 40674f4 - Browse repository at this point
Copy the full SHA 40674f4View commit details -
Remove --include-ifd from nix-instantiate
nix-instantiate is deprecated!
Configuration menu - View commit details
-
Copy full SHA for 2eb9e07 - Browse repository at this point
Copy the full SHA 2eb9e07View commit details -
Configuration menu - View commit details
-
Copy full SHA for abe2d7f - Browse repository at this point
Copy the full SHA abe2d7fView commit details
Commits on Apr 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 18182a7 - Browse repository at this point
Copy the full SHA 18182a7View commit details -
Add --build and --eval flag to “nix path-info”
Both require --recursive. --build calculates all buildtime dependencies of a path. --eval calculates all evaltime dependencies of an expression.
Configuration menu - View commit details
-
Copy full SHA for 4eeddcd - Browse repository at this point
Copy the full SHA 4eeddcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f25f023 - Browse repository at this point
Copy the full SHA f25f023View commit details
Commits on Apr 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 93684d5 - Browse repository at this point
Copy the full SHA 93684d5View commit details
Commits on Jun 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3a155a9 - Browse repository at this point
Copy the full SHA 3a155a9View commit details -
Support getting build paths from output path
If we still have the .drv, it will be available in our database under deriver. We can use that instead of requiring we actually received a drvPath.
Configuration menu - View commit details
-
Copy full SHA for 98d5a3b - Browse repository at this point
Copy the full SHA 98d5a3bView commit details -
Co-authored-by: John Ericson <git@JohnEricson.me>
Configuration menu - View commit details
-
Copy full SHA for 34fc432 - Browse repository at this point
Copy the full SHA 34fc432View commit details -
Even non-derivations are important to have in this output, so keep them in our list.
Configuration menu - View commit details
-
Copy full SHA for 240b66a - Browse repository at this point
Copy the full SHA 240b66aView commit details
Commits on Jun 12, 2020
-
Rename importedPaths to realisedPaths
This is more accurate since things like fileExists and readFile also go through this.
Configuration menu - View commit details
-
Copy full SHA for 4e2e3fa - Browse repository at this point
Copy the full SHA 4e2e3faView commit details -
Add option to path-info to skip run deps
Runtime deps aren’t always useful, especially in the case of creating gc roots for eval deps. for instance: $ nix-store --add-result --indirect -r $(nix path-info --recursive --no-run --eval my-expression)
Configuration menu - View commit details
-
Copy full SHA for d52e556 - Browse repository at this point
Copy the full SHA d52e556View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf02207 - Browse repository at this point
Copy the full SHA bf02207View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2f0229 - Browse repository at this point
Copy the full SHA c2f0229View commit details
Commits on Jun 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0ddf019 - Browse repository at this point
Copy the full SHA 0ddf019View commit details -
This could have some bad interactions with the eval cache. Once flakes is merged, we can resolve those so that --eval will always reevaluate the expression.
Configuration menu - View commit details
-
Copy full SHA for 6c591a8 - Browse repository at this point
Copy the full SHA 6c591a8View commit details
Commits on Aug 28, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7582950 - Browse repository at this point
Copy the full SHA 7582950View commit details
Commits on Jan 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 141dfb0 - Browse repository at this point
Copy the full SHA 141dfb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1012ab2 - Browse repository at this point
Copy the full SHA 1012ab2View commit details
Commits on Jan 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 86b65fc - Browse repository at this point
Copy the full SHA 86b65fcView commit details