Skip to content

Commit

Permalink
fpc: init at ${pkgs.fpc.version}
Browse files Browse the repository at this point in the history
Works around NixOS/nixpkgs#358328 and should get drl building again.
  • Loading branch information
Rhys-T committed Nov 29, 2024
1 parent 42058f1 commit 8639742
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ in {
};
});

fpc = pkgs.fpc.overrideAttrs (old: {
postPatch = (old.postPatch or "") + pkgs.lib.optionalString pkgs.hostPlatform.isDarwin ''
NIX_LDFLAGS+=" -F$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
NIX_LDFLAGS+=" -L$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib"
if [ -d "$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift" ]; then
NIX_LDFLAGS+=" -L$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift"
fi
'';
meta = old.meta // {
description = "${old.meta.description or "fpc"} (fixed for macOS/Darwin)";
};
});

drl-packages = callPackage ./pkgs/drl/packages.nix {};
inherit (self.drl-packages) drl drl-hq drl-lq;

Expand Down

0 comments on commit 8639742

Please sign in to comment.