From 7e5752192f936651c5104c7acf651f6560d7c273 Mon Sep 17 00:00:00 2001 From: Teo Camarasu Date: Fri, 19 Apr 2024 12:52:12 +0100 Subject: [PATCH] Explicitly list testTargets `testTarget` is a space separated list of test-suites. We explicitly list all test suites. This allows us to implement logic in the nixpkgs builder to run test suites in separate passthru.test derivations. --- cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs b/cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs index 7f278b593..b8317cd56 100644 --- a/cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs +++ b/cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs @@ -112,7 +112,7 @@ fromPackageDescription haskellResolver nixpkgsResolver missingDeps flags Package & jailbreak .~ False & doCheck .~ True & doBenchmark .~ False - & testTarget .~ mempty + & testTarget .~ unwords (map (unUnqualComponentName . testName) testSuites) & hyperlinkSource .~ True & enableSplitObjs .~ True & enableLibraryProfiling .~ False