diff options
| author | Peter Simons <simons@cryp.to> | 2017-02-05 21:18:27 +0100 |
|---|---|---|
| committer | Peter Simons <simons@cryp.to> | 2017-02-05 21:18:27 +0100 |
| commit | 1f18f65650817268d6dc59d9327395326c2c2f02 (patch) | |
| tree | e37586df56a5112e8fa030def75b95be277156c0 /pkgs/development/python-modules/GitPython/hardcode-git-path.patch | |
| parent | c84d0dd419d827bfc62c80b925d37e4cab30b41a (diff) | |
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" {}
Diffstat (limited to 'pkgs/development/python-modules/GitPython/hardcode-git-path.patch')
0 files changed, 0 insertions, 0 deletions
