{ compiler, extraOverrides ? (final: prev: { }) }: self: super: let inherit (self.haskell) lib; overrides = final: prev: rec { # To pin custom versions of Haskell packages: # protolude = # prev.callHackageDirect # { # pkg = "protolude"; # ver = "0.3.0"; # sha256 = "0iwh4wsjhb7pms88lw1afhdal9f86nrrkkvv65f9wxbd1b159n72"; # } # { }; # # To get the sha256: # nix-prefetch-url --unpack https://hackage.haskell.org/package/protolude-0.3.0/protolude-0.3.0.tar.gz # To temporarily pin unreleased versions from GitHub: # = # prev.callCabal2nixWithOptions "" (super.fetchFromGitHub { # owner = ""; # repo = ""; # rev = ""; # sha256 = ""; # }) "--subpath=" {}; # # To get the sha256: # nix-prefetch-url --unpack https://github.com///archive/.tar.gz hasql = lib.dontCheck prev.hasql_1_6_0_1; hasql-dynamic-statements = lib.dontCheck prev.hasql-dynamic-statements_0_3_1_2; hasql-transaction = lib.dontCheck prev.hasql-transaction_1_0_1_2; hasql-notifications = lib.dontCheck (prev.callHackageDirect { pkg = "hasql-notifications"; ver = "0.2.0.3"; sha256 = "sha256-x8EGEMVYSw4O1Kn6MxOB+/3y3ITxqESDfrYgM8B1hOw="; } { }); hasql-pool = lib.dontCheck (prev.callHackageDirect { pkg = "hasql-pool"; ver = "0.8.0.2"; sha256 = "sha256-9GE9qyymTLXw4ZW6LbNnn4T2tCgNYVEuBIPcUA83xCg="; } { }); } // extraOverrides final prev; in { haskell = super.haskell // { packages = super.haskell.packages // { "${compiler}" = super.haskell.packages."${compiler}".override { inherit overrides; }; }; }; }