Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(needs "Chroot store support" #813) Add an integration test for derivationStrict builtin #789

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"