3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
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
..
applications Merge pull request #22421 from orivej/unison-fsmonitor 2017-02-05 19:02:41 +00:00
build-support Add a pkgs.dhallToNix utility 2017-01-26 20:11:49 -08:00
data liberastika: init at 1.1.5 (#22420) 2017-02-04 16:38:01 +01:00
desktops Merge pull request #22432 from peterhoeg/d/freerdp 2017-02-05 17:08:19 +01:00
development callCabal2nix: take "name" parameter as a function argument 2017-02-05 21:18:27 +01:00
games Merge branch 'staging' 2017-02-04 21:02:46 +01:00
misc Merge branch 'staging' 2017-02-04 21:02:46 +01:00
os-specific Merge pull request #22353 from abbradar/bluetooth 2017-02-05 13:18:48 +03:00
servers Merge pull request #22444 from Ralith/matrix-synapse 2017-02-05 04:04:11 -05:00
shells fish: 2.3.1 -> 2.5.0 2017-02-04 20:58:55 +01:00
stdenv make-bootstrap-tools{,-cross}.nix: Fix build after binutils changes 2017-02-04 23:39:25 +02:00
test
tools rrdtool: 1.5.6 -> 1.6.0 2017-02-05 19:06:29 +01:00
top-level Merge pull request #22146 from dasuxullebt/gbsplay 2017-02-05 19:01:47 +00:00