From 98063255ff948d4596685f8ba5adb80af2339e6c Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 5 Oct 2024 23:45:00 +0300 Subject: [PATCH] haskellPackages.ghc-settings-edit: avoid the use of filesets This should be 0 rebuilds, except it fixes the installer tests, as lib.filesets is somehow broken when combining chroot stores with channel references (???). Running nixosTests.installer.simple with this reverted will reproduce the issue consistently. CC @infinisil --- .../tools/haskell/ghc-settings-edit/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/haskell/ghc-settings-edit/default.nix b/pkgs/development/tools/haskell/ghc-settings-edit/default.nix index fa5146a128bb..4cd19aebcdd7 100644 --- a/pkgs/development/tools/haskell/ghc-settings-edit/default.nix +++ b/pkgs/development/tools/haskell/ghc-settings-edit/default.nix @@ -8,13 +8,10 @@ mkDerivation { pname = "ghc-settings-edit"; version = "0.1.0"; - src = lib.fileset.toSource { - root = ./.; - fileset = lib.fileset.unions [ - ./Setup.hs - ./ghc-settings-edit.lhs - ./ghc-settings-edit.cabal - ]; + src = builtins.path { + path = ./.; + name = "source"; + filter = path: _: (builtins.baseNameOf path) != "default.nix"; }; isLibrary = false; isExecutable = true;