From 13dc24f5c3d855c5fdd6fbbdd331ae78df9eb0e9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 7 Aug 2015 22:25:03 +0200 Subject: [PATCH] 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. --- pkgs/development/tools/haskell/cabal2nix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix index b56dc6bdd892..4a234cbc1e8f 100644 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ b/pkgs/development/tools/haskell/cabal2nix/default.nix @@ -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;