tests.trivial: Avoid evaluation and ${pkgs.path} dep

> There is an issue in the test added by #123111.
> [it] introduces a dependency on the contents of nixpkgs,
> making every change evaluate with a different hash.
This commit is contained in:
Robert Hensing
2021-05-19 01:06:09 +02:00
parent 52833ef8c0
commit 35406647fd
5 changed files with 76 additions and 28 deletions
@@ -0,0 +1,4 @@
{ pkgs ? import ../../../.. { config = {}; overlays = []; } }:
pkgs.lib.mapAttrs
(k: v: pkgs.writeDirectReferencesToFile v)
(import ./sample.nix { inherit pkgs; })