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
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
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
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
pharo
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
tools Merge pull request #22456 from peterhoeg/u/wp 2017-02-05 05:52:04 +01:00
web