mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
allow fetchMercurial to take a name
argument
This commit is contained in:
parent
a487a652ed
commit
e4b082a52b
3 changed files with 10 additions and 4 deletions
|
@ -94,3 +94,8 @@ hg commit --cwd $repo -m 'Bla3'
|
|||
|
||||
path4=$(nix eval --impure --refresh --raw --expr "(builtins.fetchMercurial file://$repo).outPath")
|
||||
[[ $path2 = $path4 ]]
|
||||
|
||||
echo paris > $repo/hello
|
||||
# Passing a `name` argument should be reflected in the output path
|
||||
path5=$(nix eval -vvvvv --impure --refresh --raw --expr "(builtins.fetchMercurial { url = \"file://$repo\"; name = \"foo\"; } ).outPath")
|
||||
[[ $path5 =~ -foo$ ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue