Skip to content

Commit b111a54

Browse files
authored
Merge pull request #201 from SamirTalwar/patch-1
Add the hash to `dockerTools.pullImage`.
2 parents 4d96187 + 9b835fb commit b111a54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libnpins/src/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ let
212212
image_name,
213213
image_tag,
214214
image_digest,
215+
hash,
215216
...
216217
}:
217218
if pkgs == null then
@@ -221,6 +222,7 @@ let
221222
imageName = image_name;
222223
imageDigest = image_digest;
223224
finalImageTag = image_tag;
225+
hash = hash;
224226
};
225227
in
226228
mkFunctor (

test.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ in
733733
eq "$(jq -r .pins.hello_world.image_name npins/sources.json)" "localhost:5000/hello-world"
734734
eq "$(jq -r .pins.hello_world.image_tag npins/sources.json)" "latest"
735735
736-
nix-instantiate --eval --expr "((import ./npins).hello_world)"
736+
nix-instantiate --eval --expr "((import ./npins).hello_world { pkgs = import ${pins.nixpkgs} {}; }).outPath"
737737
'';
738738
};
739739

0 commit comments

Comments
 (0)