mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
ec0c59e2de
* Support for packages with only tests Fixes #362 * Fix for ghcjs
18 lines
352 B
Nix
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;
|
|
}
|