Skip to content

Commit ac7450a

Browse files
layusAnton-Latukha
authored andcommitted
Add an integration test for derivationStrict builtin
1 parent 1927b42 commit ac7450a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/eval-compare/nixpkgs.hello.nix

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
3+
FIXME: TODO: This is a bad test because:
4+
5+
1. We may not have access to the network in test environments (e.g. Nix :-))
6+
2. fetchTarball is not yet implemented in hnix and call the real nix
7+
3. We want all the tests that rely on nixpkgs to use the same fetched path
8+
4. We want a single place to update the nixpkgs revision we test.
9+
5. Currently hnix tests are not sandboxed as the ones in hnix-store-remote,
10+
so all the .drv we build en up in the host store.
11+
12+
XXX: NIXPKGS_TESTS are broken for now. Fix that too when fixing this.
13+
14+
*/
15+
let
16+
nixpkgs = builtins.fetchTarball {
17+
url = "https://github.com/NixOS/nixpkgs/archive/1dc37370c489b610f8b91d7fdd40633163ffbafd.tar.gz";
18+
};
19+
in
20+
21+
with import nixpkgs {};
22+
"${pkgs.hello.drvPath}"

0 commit comments

Comments
 (0)