Skip to content

Commit

Permalink
eval-tests: Remove getFlake calls
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Sep 12, 2024
1 parent d50b490 commit 3314f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dev/flake-module.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, inputs, withSystem, ... }:
{ config, lib, inputs, self, withSystem, ... }:

{
imports = [
Expand Down Expand Up @@ -64,7 +64,7 @@
};

checks.eval-tests =
let tests = import ./tests/eval-tests.nix;
let tests = import ./tests/eval-tests.nix { flake-parts = self; };
in tests.runTests pkgs.emptyFile // { internals = tests; };

};
Expand Down
15 changes: 5 additions & 10 deletions dev/tests/eval-tests.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# Run with
#
# nix build -f dev checks.x86_64-linux.eval-tests
# nix build .#checks.x86_64-linux.eval-tests

{ flake-parts }:
rec {
f-p = builtins.getFlake (toString ../..);
flake-parts = f-p;

devFlake = builtins.getFlake (toString ../.);
nixpkgs = devFlake.inputs.nixpkgs;

f-p-lib = f-p.lib;

nixpkgs = flake-parts.inputs.nixpkgs;
f-p-lib = flake-parts.lib;
inherit (f-p-lib) mkFlake;
inherit (f-p.inputs.nixpkgs-lib) lib;
inherit (flake-parts.inputs.nixpkgs-lib) lib;

pkg = system: name:
derivation
Expand Down

0 comments on commit 3314f9c

Please sign in to comment.