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 = [ imports = [
@ -64,7 +64,7 @@
}; };
checks.eval-tests = 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; }; in tests.runTests pkgs.emptyFile // { internals = tests; };
}; };

View file

@ -1,18 +1,13 @@
# Run with # Run with
# #
# nix build -f dev checks.x86_64-linux.eval-tests # nix build .#checks.x86_64-linux.eval-tests
{ flake-parts }:
rec { rec {
f-p = builtins.getFlake (toString ../..); nixpkgs = flake-parts.inputs.nixpkgs;
flake-parts = f-p; f-p-lib = flake-parts.lib;
devFlake = builtins.getFlake (toString ../.);
nixpkgs = devFlake.inputs.nixpkgs;
f-p-lib = f-p.lib;
inherit (f-p-lib) mkFlake; inherit (f-p-lib) mkFlake;
inherit (f-p.inputs.nixpkgs-lib) lib; inherit (flake-parts.inputs.nixpkgs-lib) lib;
pkg = system: name: pkg = system: name:
derivation derivation