Skip to content

Commit

Permalink
Implement suggestion for bazel / rules_haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Jul 13, 2023
1 parent 64576d5 commit 514540c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nixpkgs
4 changes: 2 additions & 2 deletions nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if builtins.getEnv "STATIC_HASKELL_NIX_CI_NIXPKGS_UNSTABLE_BUILD" == "1"
if builtins.pathExists ./nixpkgs/pkgs
then import ./nixpkgs {}
# Pinned nixpkgs version; should be kept up-to-date with our submodule.
# This is nixos-21.11 as of 2021-12-15.
else import (fetchTarball https://github.com/NixOS/nixpkgs/archive/573095944e7c1d58d30fc679c81af63668b54056.tar.gz) {}
# This is nixos-23.05 as of 2023-06-08, with minimal patches currently having open nixpkgs PR (see commits for PR links).
else import (fetchTarball https://github.com/nh2/nixpkgs/archive/9e49f8f1f37bc906cda1adb33064c325d760819a.tar.gz) {}
5 changes: 4 additions & 1 deletion survey/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,10 @@ let
else ghcPackage.override { enableDwarf = false; }
)
(ghcPackage:
ghcPackage.override { enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; }
ghcPackage.override {
enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell;
enableShared = !useArchiveFilesForTemplateHaskell;
}
)
];

Expand Down

0 comments on commit 514540c

Please sign in to comment.