1f18f65650
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" {} |
||
---|---|---|
.. | ||
patches | ||
configuration-common.nix | ||
configuration-ghc-6.12.x.nix | ||
configuration-ghc-7.0.x.nix | ||
configuration-ghc-7.2.x.nix | ||
configuration-ghc-7.4.x.nix | ||
configuration-ghc-7.6.x.nix | ||
configuration-ghc-7.8.x.nix | ||
configuration-ghc-7.10.x.nix | ||
configuration-ghc-8.0.x.nix | ||
configuration-ghc-head.nix | ||
configuration-ghcjs.nix | ||
configuration-hackage2nix.yaml | ||
default.nix | ||
generic-builder.nix | ||
generic-stack-builder.nix | ||
hackage-packages.nix | ||
hoogle-local-wrapper.sh | ||
hoogle.nix | ||
lib.nix | ||
with-packages-wrapper.nix |