commit 26e648beff71401023c502a8fe1c20032e86c8bb parent e51067b166b429d636183257274ec9dadcd96fa0 Author: Jared Tobin <jared@jtobin.io> Date: Mon, 16 Sep 2024 16:40:45 +0400 meta: use extend instead of override Diffstat:
M | flake.nix | | | 9 | +++------ |
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/flake.nix b/flake.nix @@ -14,12 +14,9 @@ pkgs = import nixpkgs { inherit system; }; hlib = pkgs.haskell.lib; - hpkgs = pkgs.haskell.packages.ghc981.override { - overrides = new: old: { - ${lib} = - old.callCabal2nixWithOptions lib ./. "--enable-profiling" {}; - }; - }; + hpkgs = pkgs.haskell.packages.ghc981.extend (new: old: { + ${lib} = old.callCabal2nixWithOptions lib ./. "--enable-profiling" {}; + }); cc = pkgs.stdenv.cc; ghc = hpkgs.ghc;