[Nix-dev] attempt to call something which is not a function but a set

Cody Goodman codygman.consulting at gmail.com
Sat Feb 21 08:50:33 CET 2015


[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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150221/f8f5df2b/attachment.html 


More information about the nix-dev mailing list