Discussion:
[Nix-dev] attempt to call something which is not a function but a set
Cody Goodman
2015-02-21 07:50:33 UTC
Permalink
[***@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-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
Kirill Elagin
2015-03-01 10:46:26 UTC
Permalink
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`.
Post by Cody Goodman
error: attempt to call something which is not a function but a set, at
"/home/cody/sources/Frames/shell.nix":2:7
<<< Welcome to NixOS 14.12.374.61adf9e (\m) - \l >>>
Press <Alt-F8> for the NixOS manual.
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);
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
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
http://lists.science.uu.nl/mailman/listinfo/nix-dev
Loading...