Advertisement
Guest User

Untitled

a guest
May 24th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. { buildPythonPackage
  2. , python
  3. , dlib
  4. , fetchFromGitHub
  5. , cmake
  6. }:
  7.  
  8. buildPythonPackage rec {
  9. pname = "dlib";
  10. version = "19.4";
  11. name = "${pname}-${version}";
  12.  
  13. format = "setuptools";
  14.  
  15. src = fetchFromGitHub {
  16. owner = "davisking";
  17. repo = "dlib";
  18. rev ="v${version}";
  19. sha256 = "0zqa36i4s5i7n6284sp22qrhm3k37n9vqmpz068nm02vj9h0a2j4";
  20. };
  21.  
  22. LC_ALL = "en_US.UTF-8";
  23. }
  24.  
  25. $ nix-shell -I nixpkgs=$HOME/nixpkgs -p pythonPackages.dlib
  26. these derivations will be built:
  27. /nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv
  28. building path(s) ‘/nix/store/x2wb2ilvl24f4zqndkhkmk0a0m3iwrhh-python2.7-dlib-19.4’
  29. unpacking sources
  30. unpacking source archive /nix/store/p3p5d3jgmm99pigq64amv1dgahvi1br8-dlib-v19.4-src
  31. source root is dlib-v19.4-src
  32. setting SOURCE_DATE_EPOCH to timestamp 315619200 of file dlib-v19.4-src/.travis.yml
  33. patching sources
  34. configuring
  35. building
  36. running bdist_wheel
  37. running build
  38. Exception:
  39. Traceback (most recent call last):
  40. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
  41. status = self.run(options, args)
  42. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
  43. prefix=options.prefix_path,
  44. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
  45. **kwargs
  46. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
  47. self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  48. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
  49. isolated=self.isolated,
  50. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
  51. clobber(source, lib_dir, True)
  52. File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber
  53. shutil.copyfile(srcfile, destfile)
  54. File "/nix/store/3n3r10921c0mzfrq64hc4m2jzjk13qpr-python-2.7.13/lib/python2.7/shutil.py", line 83, in copyfile
  55. with open(dst, 'wb') as fdst:
  56. IOError: [Errno 13] Permission denied: '/nix/store/3n3r10921c0mzfrq64hc4m2jzjk13qpr-python-2.7.13/lib/python2.7/site-packages/distro.py'
  57. error: Cannot find cmake, ensure it is installed and in the path.
  58. You can install cmake using the instructions at https://cmake.org/install/
  59. You can also specify its path with --cmake parameter.
  60. builder for ‘/nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv’ failed with exit code 1
  61. error: build of ‘/nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv’ failed
  62. /home/toelli/.nix-profile/bin/nix-shell: failed to build all dependencies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement