···1164 jailbreak = assert drv.version == "1.0.9" && drv.revision == "1"; true;
1165 }) super.dhall-nixpkgs);
11661167- stack_2_11_1 =
1168- lib.pipe
1169- super.stack_2_11_1
1170- [
1171- (self.generateOptparseApplicativeCompletions [ "stack" ])
1172-1173- # Seems to be an unnecessarily strict dep on ansi-terminal
1174- doJailbreak
1175-1176- # The below patch has unix line endings, but the actual file
1177- # has CRLF line endings. The following override changes the
1178- # file to unix line endings before applying the patch.
1179- (overrideCabal (oldAttrs: {
1180- prePatch = oldAttrs.prePatch or "" + ''
1181- "${lib.getBin pkgs.buildPackages.dos2unix}/bin/dos2unix" src/main/BuildInfo.hs
1182- '';
1183- }))
1184- # stack-2.11.1 has a bug when building without git.
1185- # https://github.com/commercialhaskell/stack/pull/6127
1186- (appendPatch
1187- (fetchpatch {
1188- name = "stack-fix-building-without-git.patch";
1189- url = "https://github.com/commercialhaskell/stack/pull/6127/commits/086f93933d547736a7007fc4110f7816ef21f691.patch";
1190- hash = "sha256-1nwzMoumWceVu8RNnH2mmSxYT24G1FAnFRJvUMeD3po=";
1191- includes = [ "src/main/BuildInfo.hs" ];
1192- })
1193- )
1194- ];
1195-1196 stack =
1197 lib.pipe
1198- (super.stack.override {
1199- # stack needs to use an exact hpack version. When changing or removing
1200- # this override, double-check the upstream stack release to confirm
1201- # that we are using the correct hpack version. See
1202- # https://github.com/NixOS/nixpkgs/issues/223390 for more information.
1203- hpack = assert self.hpack.version == "0.35.2"; self.hpack;
1204- })
1205 [
1206 (self.generateOptparseApplicativeCompletions [ "stack" ])
1207