cabal2nix: update to version 20150807-6-g9f58996
The generated shell.nix file accepts a string argument called "compiler" that determines the package set used to instantiate the generated expression. For example, running "nix-shell --argstr compiler ghc7102" would evaluate the build inside of "pkgs.haskell.packages.ghc7102". Earlier versions of cabal2nix had the current default compiler hard-coded in the expression, but after this change this is no longer the case. When "compiler" remains unspecified, it defaults to "default", and this value causes evaluation in "pkgs.haskellPackages", which is the package set most people would like to use by default. That change has to benefits: 1) Generated expression no longer contain any particular compiler version. The choice of the default compiler depends on the version of Nixpkgs that's used to build the expression. 2) When the default compiler is used, overrides configured for the default package set apply, which was not the case in earlier versions.
This commit is contained in:
parent
fe04998994
commit
13dc24f5c3
@ -8,11 +8,11 @@
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "cabal2nix";
|
||||
version = "20150807";
|
||||
version = "20150807-6-g9f58996";
|
||||
src = fetchgit {
|
||||
url = "http://github.com/NixOS/cabal2nix.git";
|
||||
rev = "796dabfc3fb0a98174b680c5d722954096465103";
|
||||
sha256 = "1blyjq80w9534ap4cg0m6awks0zj2135kxld1i9d2z88x1ijzx9v";
|
||||
rev = "9f589961fba9fa6a92900c37cf1ab16c597b0c69";
|
||||
sha256 = "1w5ba7cdanpq4nr8xngk1jsj0p6b17c6ap24ldzggrln216f3f7d";
|
||||
deepClone = true;
|
||||
};
|
||||
isLibrary = true;
|
||||
|
Loading…
Reference in New Issue
Block a user