Skip to content

Commit 9133141

Browse files
committed
Fix th-dlls-minimal test
1 parent f5f959a commit 9133141

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

overlays/haskell.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@ final: prev: {
755755
} // final.lib.optionalAttrs (p.pkg-src.type or "" == "local") {
756756
src = if final.lib.hasPrefix "/" p.pkg-src.path
757757
then p.pkg-src.path
758-
else callProjectResults.src + final.lib.removeSuffix "/." (
758+
else callProjectResults.src + final.lib.removeSuffix "/." (final.lib.removeSuffix "/." (
759759
if final.lib.hasPrefix ".${callProjectResults.src.origSubDir or ""}/" (p.pkg-src.path + "/")
760760
then final.lib.removePrefix ".${callProjectResults.src.origSubDir or ""}" p.pkg-src.path
761-
else throw "Unexpected path ${p.pkg-src.path} expected it to start with .${callProjectResults.src.origSubDir or ""}");
761+
else throw "Unexpected path ${p.pkg-src.path} expected it to start with .${callProjectResults.src.origSubDir or ""}"));
762762
} // {
763763
flags = p.flags;
764764
components = getComponents cabal2nix.components hsPkgs p;
@@ -782,9 +782,9 @@ final: prev: {
782782
inherit (config.packages.${p.pkg-name}) components;
783783
mapOptions = c:
784784
builtins.mapAttrs (_: x: final.lib.mkOverride 990 x)
785-
(builtins.removeAttrs c ["buildable" "planned" "depends" "build-tools"]) //
785+
(builtins.removeAttrs c ["buildable" "planned" "depends" "build-tools" "libs"]) //
786786
builtins.mapAttrs (_n: x: final.lib.mkOverride 90 x) (
787-
final.lib.filterAttrs (n: x: builtins.elem n ["depends" "build-tools"] && builtins.length x != 0) c);
787+
final.lib.filterAttrs (n: x: builtins.elem n ["depends" "build-tools" "libs"] && builtins.length x != 0) c);
788788
in
789789
final.lib.optionalAttrs (components.library or null != null) {
790790
library = mapOptions components.library;

0 commit comments

Comments
 (0)