nix/src
Alyssa Ross 0812ddeb09
Fix exportReferencesGraph when given store subpath
With Nix 2.3, it was possible to pass a subpath of a store path to
exportReferencesGraph:

	with import <nixpkgs> {};

	let
	  hello = writeShellScriptBin "hello" ''
	    echo ${toString builtins.currentTime}
	  '';
	in

	writeClosure [ "${hello}/bin/hello" ]

This regressed with Nix 2.4, with a very confusing error message, that
presumably indicates it was unintentional:

	error: path '/nix/store/3gl7kgjr4pwf03f0x70dgx9ln3bhl7zc-hello/bin/hello' is not in the Nix store

(cherry picked from commit 0774e8ba33)
2024-10-15 16:56:00 +02:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Merge pull request #7661 from henrik-ch/repl-doc 2023-09-14 16:43:02 +02:00
libexpr Store ref<EvalState> in CachedEvalError 2024-09-09 00:38:28 +02:00
libfetchers Tarball trees: Propagate lastModified 2023-08-22 21:51:26 +02:00
libmain Prevent overriding virtual methods that are called in a destructor 2023-08-11 11:58:33 +02:00
libstore Fix exportReferencesGraph when given store subpath 2024-10-15 16:56:00 +02:00
libutil Merge pull request from GHSA-q82p-44mg-mgh5 2024-06-26 18:49:22 -04:00
nix Typo 2024-09-08 10:31:25 -04:00
nix-build fix: check to see if there are any lines before 2024-08-19 14:28:08 +00:00
nix-channel Factor out nix-defexpr path computation 2023-08-02 12:54:48 -04:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Merge pull request #8735 from obsidiansystems/defexpr 2023-08-11 20:32:03 +02:00
nix-instantiate nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-store add nix-store --query --valid-derivers command 2023-08-24 11:37:24 +02:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00