Skip to content

Commit b441ab2

Browse files
committed
Add .profiled and .dwarft checks
1 parent 15973d3 commit b441ab2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/check.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, lib, haskellLib, buildPackages }:
2-
drv:
2+
let self = drv:
33

44
let
55
component = drv.config;
@@ -28,6 +28,8 @@ in stdenv.mkDerivation ((
2828

2929
passthru = {
3030
inherit (drv) identifier config configFiles executableToolDepends cleanSrc env exeName;
31+
profiled = self drv.profiled;
32+
dwarf = self drv.dwarf;
3133
};
3234

3335
inherit (drv) meta LANG LC_ALL buildInputs;
@@ -63,3 +65,4 @@ in stdenv.mkDerivation ((
6365
}
6466
// lib.optionalAttrs (drv ? LOCALE_ARCHIVE) { inherit (drv) LOCALE_ARCHIVE; }
6567
)
68+
in self

test/js-template-haskell/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ in recurseIntoAttrs {
1616
inherit (project) plan-nix;
1717
};
1818

19-
meta.disable = haskellLib.isCrossHost && stdenv.hostPlatform.isAarch64;
19+
meta.disabled = haskellLib.isCrossHost && stdenv.hostPlatform.isAarch64;
2020

2121
build = packages.js-template-haskell.components.library;
2222
check = packages.js-template-haskell.checks.test;
2323
} // optionalAttrs (!stdenv.hostPlatform.isGhcjs) {
2424
build-profiled = packages.js-template-haskell.components.library.profiled;
25-
check = packages.js-template-haskell.checks.test.profiled;
25+
check-profiled = packages.js-template-haskell.checks.test.profiled;
2626
}

0 commit comments

Comments
 (0)