1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 05:00:58 +01:00
nix/src
Alyssa Ross 4628cb89eb 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-06-04 10:26:17 +00:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd add deprecation warnings in documentation 2023-11-27 14:08:16 +01:00
libexpr builtins.addDrvOutputDependencies: fix commentary 2024-03-29 10:56:43 +00:00
libfetchers Merge pull request #9283 from obsidiansystems/mememory-source-accessor 2023-11-06 19:51:02 +01:00
libmain Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
libstore Fix exportReferencesGraph when given store subpath 2024-06-04 10:26:17 +00:00
libutil libutil/url: fix git+file:./ parse error 2024-06-04 08:27:08 +00:00
nix path-info: print correct path when using nix path-info --store file://... --all --json 2024-04-10 17:37:34 +00:00
nix-build Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-channel Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Remove stray executable permissions on source files 2023-11-02 09:24:21 +01:00
nix-env nix-env: Use state.mkList, required for correct stats 2023-11-17 10:23:32 +01:00
nix-instantiate Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-store Split up util.{hh,cc} 2023-11-05 12:20:02 -05: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