Context.
stack
included in my configuration.nix
. stack --version
yields Version 1.6.3 x86_64
. >=1.7
in order to compile a bleeding edge Haskell package that my team is working on. 1.6.5
, which is too old anyway. Question: Does anyone know how to force stack on NixOS to compile to version, ie, 1.7.1
?
Adding this overlay should do the trick:
(self: super: {
haskellPackages = super.haskellPackages.extend
(hself: hsuper: {
stack = (hsuper.callHackage "stack" "1.7.1" {})
.overrideScope (hself2: hsuper2: {
Cabal = hself2.Cabal_2_2_0_1;
hpack = hself2.hpack_0_28_2;
});
});
})
This successfully builds stack
on Nixpkgs master. It will be available as the stack
attribute or haskellPackages.stack
attribute.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.