Advertisement
Guest User

Untitled

a guest
Jan 10th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. ~ ⌚ 14:36:37
  2. $ nix-build python.nix -I nixpkgs=channel:nixos-17.09
  3. these derivations will be built:
  4. /nix/store/wcq6dxz18f0xna54mrrkcx2dzf4awb0d-test-py.drv
  5. building '/nix/store/wcq6dxz18f0xna54mrrkcx2dzf4awb0d-test-py.drv'...
  6. 156
  7. /nix/store/066fqdvgfnzdr27i1ffz7cghf8r89glg-stdenv/setup: line 1013: /nix/store/y4vvxb579rb8wy5jhsq9znb08jz2skj8-test-py/pythonpath: No such file or directory
  8. builder for '/nix/store/wcq6dxz18f0xna54mrrkcx2dzf4awb0d-test-py.drv' failed with exit code 1
  9. error: build of '/nix/store/wcq6dxz18f0xna54mrrkcx2dzf4awb0d-test-py.drv' failed
  10.  
  11. ~ ⌚ 14:36:44
  12. $ nix-build python.nix -I nixpkgs=channel:nixos-17.03
  13. these derivations will be built:
  14. /nix/store/n7ivqa9p879isa50l8fxal63xj15zyq4-test-py.drv
  15. building '/nix/store/n7ivqa9p879isa50l8fxal63xj15zyq4-test-py.drv'...
  16. 88
  17. /nix/store/p4avr9pw3sa68ivryc490fvqmnws0zyv-stdenv/setup: line 854: /nix/store/7a8kr8nzb8sm51a6hirldxpb61740irq-test-py/pythonpath: No such file or directory
  18. builder for '/nix/store/n7ivqa9p879isa50l8fxal63xj15zyq4-test-py.drv' failed with exit code 1
  19. error: build of '/nix/store/n7ivqa9p879isa50l8fxal63xj15zyq4-test-py.drv' failed
  20.  
  21. ~ ⌚ 14:36:47
  22. $ cat python.nix
  23. let
  24. pkgs = (import <nixpkgs> {});
  25. in
  26. pkgs.stdenv.mkDerivation {
  27. name = "test-py";
  28. buildInputs = [
  29. pkgs.pythonFull
  30. pkgs.pythonPackages.pandas
  31. pkgs.pythonPackages.scikitlearn
  32. pkgs.pythonPackages.matplotlib
  33. pkgs.pythonPackages.plotly
  34. pkgs.pythonPackages.statsmodels
  35. ];
  36. buildCommand = ''
  37. echo $PYTHONPATH | awk -F\: '{print NF}'
  38. echo $PYTHONPATH > $out/pythonpath
  39. '';
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement