Files
haskell.nix/test/test-only/default.nix
Hamish Mackenzie ec0c59e2de Support for packages with only tests (#1732)
* Support for packages with only tests

Fixes #362

* Fix for ghcjs
2022-10-03 15:39:47 +13:00

18 lines
352 B
Nix

{ stdenv, lib, util, project', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name, evalPackages }:
with lib;
let
project = project' {
inherit compiler-nix-name evalPackages;
src = testSrc "test-only";
};
in recurseIntoAttrs {
ifdInputs = {
inherit (project) plan-nix;
};
run = project.hsPkgs.test-only.checks.my-test;
}