Profpatsch/nix/emptyDerivation/default.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ depot, pkgs, localSystem, ... }:

let
  emptyDerivation = import ./emptyDerivation.nix {
    inherit pkgs;
    inherit (pkgs) stdenv;
    inherit (depot.nix) getBins;
    system = localSystem;
  };

  tests = import ./tests.nix {
    inherit emptyDerivation;
    inherit pkgs;
    inherit (depot.nix) writeExecline getBins;
    inherit (depot.nix.runTestsuite) runTestsuite it assertEq;
  };

in
{
  __functor = _: emptyDerivation;
  inherit tests;
}