1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

eval-tests: Remove getFlake calls

This commit is contained in:
Robert Hensing 2024-09-12 16:43:39 +02:00
parent d50b490ccc
commit 3314f9c931
2 changed files with 7 additions and 12 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, inputs, withSystem, ... }:
{ config, lib, inputs, self, withSystem, ... }:
{
imports = [
@ -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; };
};

View file

@ -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