Skip to content

Commit

Permalink
Add an integration test for derivationStrict builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
layus authored and Anton-Latukha committed Dec 31, 2020
1 parent 1927b42 commit ac7450a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/eval-compare/nixpkgs.hello.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
FIXME: TODO: This is a bad test because:
1. We may not have access to the network in test environments (e.g. Nix :-))
2. fetchTarball is not yet implemented in hnix and call the real nix
3. We want all the tests that rely on nixpkgs to use the same fetched path
4. We want a single place to update the nixpkgs revision we test.
5. Currently hnix tests are not sandboxed as the ones in hnix-store-remote,
so all the .drv we build en up in the host store.
XXX: NIXPKGS_TESTS are broken for now. Fix that too when fixing this.
*/
let
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/1dc37370c489b610f8b91d7fdd40633163ffbafd.tar.gz";
};
in

with import nixpkgs {};
"${pkgs.hello.drvPath}"

0 comments on commit ac7450a

Please sign in to comment.