Advertisement
Guest User

buildPythonPackage not found

a guest
May 8th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. with import <nixpkgs> {};
  2. let
  3. ansicolor = buildPythonPackage rec {
  4. name = "ansicolor-${version}";
  5. version = "0.2.4";
  6.  
  7. src = pkgs.fetchurl{
  8. url = "mirror://pypi/a/ansicolor/${name}.tar.gz";
  9. sha256 = "0zlkk9706xn5yshwzdn8xsfkim8iv44zsl6qjwg2f4gn62rqky1h";
  10. };
  11.  
  12. meta = {
  13. homepage = "https://github.com/numerodix/ansicolor/";
  14. description = "A library to produce ansi color output and colored highlighting and diffing";
  15. };
  16. }; in
  17. stdenv.mkDerivation rec {
  18. name = "env";
  19. env = buildEnv { name = name; paths = buildInputs; };
  20. buildInputs = [
  21. python ansicolor pythonPackages.jupyter
  22. ];
  23. }
  24.  
  25. #command line output
  26. error: undefined variable ‘buildPythonPackage’ at /tmp/x/default.nix:3:13
  27. (use ‘--show-trace’ to show detailed location information)
  28.  
  29. #with --show-trace
  30. Error: while evaluating the attribute ‘env’ of the derivation ‘env’ at /tmp/x/default.nix:20:3:
  31. while evaluating the attribute ‘pkgs’ of the derivation ‘env’ at /nix/store/vhakj9wg0cbj8pz2ckk4wd7x80xp28dw-nixos-17.09pre106916.c5badb123a/nixos/pkgs/build-support/trivial-builders.nix:7:14:
  32. undefined variable ‘buildPythonPackage’ at /tmp/x/default.nix:3:13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement