nixpkgs-suyu/pkgs/development/haskell-modules
Peter Simons 1f18f65650 callCabal2nix: take "name" parameter as a function argument
The callCabal2nix function cannot reliably determine the appropriate "name" for
the package it's processing. Attempts to derive this information have led to
plenty of evaluation errors, and so I'd like to go for the obvious and reliable
solution now and let the caller specify that bit of information.

Here is an example that demonstrates how to use callCabal2nix.

    let
      pkgs = import <nixpkgs> {};
      src = pkgs.fetchFromGitHub {
        owner = "gtk2hs";
        repo = "gtk2hs";
        rev = "eee61d84edf1dd44f8d380d7d7cae2405de50124";
        sha256 = "12i53grimni0dyjqjydl120z5amcn668w4pfhl8dxscjh4a0l5nb";
      };
    in
      pkgs.haskellPackages.callCabal2nix "gtkhs-tools" "${src}/tools" {}
2017-02-05 21:18:27 +01:00
..
patches ghc-head: Fixes for new base and Cabal 2017-01-07 10:28:48 -05:00
configuration-common.nix haskellPackages.mysql-simple: skip check 2017-02-04 01:41:45 +01:00
configuration-ghc-6.12.x.nix haskell: drop obsolete jailbreaking overrides 2016-10-20 13:40:10 +02:00
configuration-ghc-7.0.x.nix haskell: drop obsolete jailbreaking overrides 2016-10-20 13:40:10 +02:00
configuration-ghc-7.2.x.nix haskell: drop obsolete jailbreaking overrides 2016-10-20 13:40:10 +02:00
configuration-ghc-7.4.x.nix haskell: drop obsolete jailbreaking overrides 2016-10-20 13:40:10 +02:00
configuration-ghc-7.6.x.nix haskell-distributive: fix build with ghc versions prior to 8.x 2017-01-18 09:54:12 +01:00
configuration-ghc-7.8.x.nix haskell-distributive: fix build with ghc versions prior to 8.x 2017-01-18 09:54:12 +01:00
configuration-ghc-7.10.x.nix haskell-distributive: fix build with ghc versions prior to 8.x 2017-01-18 09:54:12 +01:00
configuration-ghc-8.0.x.nix haskell.packages.ghc802: dontCheck vector-algorithms 2017-01-12 16:35:08 +01:00
configuration-ghc-head.nix jailbreak-cabal: fix reference in ghc-HEAD overrides 2017-01-15 17:03:32 +01:00
configuration-ghcjs.nix haskell/ghcjs: fix ghcjs-ffiqq, add ghcjs-vdom (#20614) 2016-12-06 23:24:42 +01:00
configuration-hackage2nix.yaml hackage2nix: remove swagger2 from the list of broken packages 2017-02-02 17:43:04 +01:00
default.nix callCabal2nix: take "name" parameter as a function argument 2017-02-05 21:18:27 +01:00
generic-builder.nix haskell-modules/generic-builder: Fix copy-paste error 2017-01-23 11:35:59 -05:00
generic-stack-builder.nix haskell.lib.buildStackProject: fix #22386 2017-02-03 10:07:10 +01:00
hackage-packages.nix hackage-packages.nix: automatic Haskell package set update 2017-02-02 10:59:33 +01:00
hoogle-local-wrapper.sh Make hoogle-local compatible wih hoogle >= 5.0.4 2016-09-20 12:04:46 +02:00
hoogle.nix haskell/hoogle.nix: make an empty packages list possible 2016-11-24 12:31:58 +01:00
lib.nix haskell: add support for 'hardeningDisable' to the generic builder 2016-09-15 09:12:03 +02:00
with-packages-wrapper.nix Merge pull request #21916 from Profpatsch/ghcWithPackages-docs 2017-01-16 10:58:06 +01:00