···11641164 jailbreak = assert drv.version == "1.0.9" && drv.revision == "1"; true;
11651165 }) super.dhall-nixpkgs);
1166116611671167- stack_2_11_1 =
11681168- lib.pipe
11691169- super.stack_2_11_1
11701170- [
11711171- (self.generateOptparseApplicativeCompletions [ "stack" ])
11721172-11731173- # Seems to be an unnecessarily strict dep on ansi-terminal
11741174- doJailbreak
11751175-11761176- # The below patch has unix line endings, but the actual file
11771177- # has CRLF line endings. The following override changes the
11781178- # file to unix line endings before applying the patch.
11791179- (overrideCabal (oldAttrs: {
11801180- prePatch = oldAttrs.prePatch or "" + ''
11811181- "${lib.getBin pkgs.buildPackages.dos2unix}/bin/dos2unix" src/main/BuildInfo.hs
11821182- '';
11831183- }))
11841184- # stack-2.11.1 has a bug when building without git.
11851185- # https://github.com/commercialhaskell/stack/pull/6127
11861186- (appendPatch
11871187- (fetchpatch {
11881188- name = "stack-fix-building-without-git.patch";
11891189- url = "https://github.com/commercialhaskell/stack/pull/6127/commits/086f93933d547736a7007fc4110f7816ef21f691.patch";
11901190- hash = "sha256-1nwzMoumWceVu8RNnH2mmSxYT24G1FAnFRJvUMeD3po=";
11911191- includes = [ "src/main/BuildInfo.hs" ];
11921192- })
11931193- )
11941194- ];
11951195-11961167 stack =
11971168 lib.pipe
11981198- (super.stack.override {
11991199- # stack needs to use an exact hpack version. When changing or removing
12001200- # this override, double-check the upstream stack release to confirm
12011201- # that we are using the correct hpack version. See
12021202- # https://github.com/NixOS/nixpkgs/issues/223390 for more information.
12031203- hpack = assert self.hpack.version == "0.35.2"; self.hpack;
12041204- })
11691169+ super.stack
12051170 [
12061171 (self.generateOptparseApplicativeCompletions [ "stack" ])
12071172