nixpkgs/pkgs/development
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
..
arduino
beam-modules
bower-modules/generic
compilers Merge branch 'staging' 2017-02-04 21:02:46 +01:00
coq-modules coqPackages.math-classes: init at 2016-06-08 2017-01-27 11:16:30 +00:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules
guile-modules
haskell-modules callCabal2nix: take "name" parameter as a function argument 2017-02-05 21:18:27 +01:00
idris-modules idrisPackages.httpclient: init 2016-12-20 00:28:23 +01:00
interpreters Merge branch 'staging' 2017-02-04 21:02:46 +01:00
libraries qt5.qtwebengine: fix ca bundle path 2017-02-05 15:05:51 +03:00
lisp-modules lispPackages.clx: git-20150117 -> git-20170201 2017-02-05 13:03:03 +01:00
lua-modules
misc
mobile xcodeenv, titaniumenv: fix IPA builds by granting codesign the right permissions 2017-01-27 10:50:36 +01:00
node-packages nodePackages: Add tern (#22418) 2017-02-04 22:18:28 +01:00
ocaml-modules virt-top: init at 1.0.8 (#21536) 2017-02-04 16:07:45 +01:00
perl-modules perl-Compress-Raw-Zlib: try without testing for now 2017-01-08 14:31:55 +01:00
pharo Remove myself from maintainers 2017-01-31 11:00:14 +01:00
pure-modules
python-modules docker_compose: Remove upper bound version limitations 2017-02-05 18:39:30 +01:00
qtcreator qtcreator: 4.2.0 -> 4.2.1 2017-02-03 17:48:17 +03:00
r-modules ~/.nixpkgs -> ~/.config/nixpkgs 2017-02-01 16:07:55 +01:00
ruby-modules bundler: 1.13.7 -> 1.14.3 (#22260) 2017-01-29 22:42:17 +00:00
tools Merge pull request #22456 from peterhoeg/u/wp 2017-02-05 05:52:04 +01:00
web nodePackages: upgrade node2nix to version 1.1.1 and regenerate the package set 2017-01-20 22:05:44 +01:00