From 514540c765ec773e434e9790e3c3d70e07d48258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Thu, 13 Jul 2023 19:48:41 +0000 Subject: [PATCH] Implement suggestion for bazel / rules_haskell From https://github.com/nh2/static-haskell-nix/pull/116#pullrequestreview-1474795596 --- nixpkgs | 2 +- nixpkgs.nix | 4 ++-- survey/default.nix | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nixpkgs b/nixpkgs index fbceb79..9e49f8f 160000 --- a/nixpkgs +++ b/nixpkgs @@ -1 +1 @@ -Subproject commit fbceb790848ba37db849ec78dea882565c63d8ca +Subproject commit 9e49f8f1f37bc906cda1adb33064c325d760819a diff --git a/nixpkgs.nix b/nixpkgs.nix index 75886cd..5cadc43 100644 --- a/nixpkgs.nix +++ b/nixpkgs.nix @@ -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) {} diff --git a/survey/default.nix b/survey/default.nix index 023770c..4c451e4 100644 --- a/survey/default.nix +++ b/survey/default.nix @@ -1572,7 +1572,10 @@ let else ghcPackage.override { enableDwarf = false; } ) (ghcPackage: - ghcPackage.override { enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; } + ghcPackage.override { + enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; + enableShared = !useArchiveFilesForTemplateHaskell; + } ) ];