[Nix-dev] attempt to call something which is not a function but a set
Kirill Elagin
kirelagin at gmail.com
Sun Mar 1 11:46:26 CET 2015
Well, that’s correct: in `61adf9e` if you check
`<nixpkgs/pkgs/development/haskell-modules/lib.nix>`, you’ll notice that
it’s just a set.
It became a function taking `pkgs` as an argument in `55003ca`.
On Sat, Feb 21, 2015 at 10:50 AM Cody Goodman <codygman.consulting at gmail.com>
wrote:
> [cody at cody-nixos:~/sources/Frames]$ nix-shell --pure shell.nix
> error: attempt to call something which is not a function but a set, at
> "/home/cody/sources/Frames/shell.nix":2:7
> [cody at cody-nixos:~/sources/Frames]$ cat /etc/issue
>
> <<< Welcome to NixOS 14.12.374.61adf9e (\m) - \l >>>
>
> Press <Alt-F8> for the NixOS manual.
>
> shell.nix:
>
> 1 with (import <nixpkgs> {}).pkgs;
> 2 with (import <nixpkgs/pkgs/development/haskell-modules/lib.nix> { pkgs =
> import <nixpkgs> {}; });
> 3 let
> 4 hsPkgs = haskellngPackages.override {
> 5 overrides = self: super: {
> 6 Rasterific = dontCheck (super.Rasterific);
> 7 readable = overrideCabal (super.readable.overrideScope (self:
> super: { }))(drv: {
> 8 version = "0.2.0.2";
> 9 sha256 =
> "0dv1xr4y5azcr8xnhsl7i8ab56mkq7b89x55c2rg9kfakmgxiqcl";
> 0 });
> 1 };
> 2 };
> 3 pkg = hsPkgs.callPackage
> 4 ({ mkDerivation, base, ghc-prim, pipes, readable, stdenv
> 5 , template-haskell, text, transformers, vector, vinyl
> 6 , cairo, diagrams, diagrams-rasterific, Chart,
> Chart-diagrams
> 7 , lens, lens-family, foldl, list-t, http-client,
> statistics, zip-archive
> 8 }:
> 9 mkDerivation {
> 0 pname = "Frames";
> 1 version = "0.1.0.0";
> 2 src = ./.;
> 3 isLibrary = true;
> 4 isExecutable = true;
> 5 buildDepends = [
> 6 base ghc-prim pipes readable template-haskell text
> transformers
> 7 vector vinyl
> 8 cairo diagrams diagrams-rasterific Chart Chart-diagrams
> 9 lens lens-family foldl list-t http-client statistics
> zip-archive
> 0 ];
> 1 description = "Data frames For working with tabular data
> files";
> 2 license = stdenv.lib.licenses.bsd3;
> 3 }) {};
> 4 in
> 5 pkg.env
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150301/4172d71c/attachment.html
More information about the nix-dev
mailing list