Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1f18f65650817268d6dc59d9327395326c2c2f02
      
https://github.com/NixOS/nixpkgs/commit/1f18f65650817268d6dc59d9327395326c2c2f02
  Author: Peter Simons <sim...@cryp.to>
  Date:   2017-02-05 (Sun, 05 Feb 2017)

  Changed paths:
    M pkgs/development/haskell-modules/default.nix

  Log Message:
  -----------
  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" {}


  Commit: 334657518ddef54b6162e0d92f9058fb6d4fa027
      
https://github.com/NixOS/nixpkgs/commit/334657518ddef54b6162e0d92f9058fb6d4fa027
  Author: Peter Simons <sim...@cryp.to>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M pkgs/development/haskell-modules/default.nix

  Log Message:
  -----------
  Merge pull request #22469 from peti/fix-callCabal2nix

callCabal2nix: take "name" parameter as a function argument


Compare: https://github.com/NixOS/nixpkgs/compare/67ccc41a67e0...334657518dde
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to