Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { buildPythonPackage
- , python
- , dlib
- , fetchFromGitHub
- , cmake
- }:
- buildPythonPackage rec {
- pname = "dlib";
- version = "19.4";
- name = "${pname}-${version}";
- format = "setuptools";
- src = fetchFromGitHub {
- owner = "davisking";
- repo = "dlib";
- rev ="v${version}";
- sha256 = "0zqa36i4s5i7n6284sp22qrhm3k37n9vqmpz068nm02vj9h0a2j4";
- };
- LC_ALL = "en_US.UTF-8";
- }
- $ nix-shell -I nixpkgs=$HOME/nixpkgs -p pythonPackages.dlib
- these derivations will be built:
- /nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv
- building path(s) ‘/nix/store/x2wb2ilvl24f4zqndkhkmk0a0m3iwrhh-python2.7-dlib-19.4’
- unpacking sources
- unpacking source archive /nix/store/p3p5d3jgmm99pigq64amv1dgahvi1br8-dlib-v19.4-src
- source root is dlib-v19.4-src
- setting SOURCE_DATE_EPOCH to timestamp 315619200 of file dlib-v19.4-src/.travis.yml
- patching sources
- configuring
- building
- running bdist_wheel
- running build
- Exception:
- Traceback (most recent call last):
- File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
- status = self.run(options, args)
- File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
- prefix=options.prefix_path,
- 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
- **kwargs
- 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
- self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
- 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
- isolated=self.isolated,
- 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
- clobber(source, lib_dir, True)
- File "/nix/store/bk8wk20853xwyx41is4jl2q6db17apfb-python2.7-bootstrapped-pip-9.0.1/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber
- shutil.copyfile(srcfile, destfile)
- File "/nix/store/3n3r10921c0mzfrq64hc4m2jzjk13qpr-python-2.7.13/lib/python2.7/shutil.py", line 83, in copyfile
- with open(dst, 'wb') as fdst:
- IOError: [Errno 13] Permission denied: '/nix/store/3n3r10921c0mzfrq64hc4m2jzjk13qpr-python-2.7.13/lib/python2.7/site-packages/distro.py'
- error: Cannot find cmake, ensure it is installed and in the path.
- You can install cmake using the instructions at https://cmake.org/install/
- You can also specify its path with --cmake parameter.
- builder for ‘/nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv’ failed with exit code 1
- error: build of ‘/nix/store/vgb5fh21jy51xs4vlcvx9wjszxxywwd5-python2.7-dlib-19.4.drv’ failed
- /home/toelli/.nix-profile/bin/nix-shell: failed to build all dependencies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement