Skip to content

Instantly share code, notes, and snippets.

@bbarker
Created June 4, 2018 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarker/651feffd37658811bb56691178e65ab7 to your computer and use it in GitHub Desktop.
Save bbarker/651feffd37658811bb56691178e65ab7 to your computer and use it in GitHub Desktop.
TCL lock error when using CPython in nix 2
nixuser@c1cc151bdb96:/nixenv/nixuser$ nix-shell . --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'impurePythonEnv' at /nix/store/98grm6apc87yp4whya0sszsjksn8spfv-nixpkgs-18.09pre140731.c29d2fde74d/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating the attribute 'CPPFLAGS' of the derivation 'python3-3.6.5' at /nix/store/98grm6apc87yp4whya0sszsjksn8spfv-nixpkgs-18.09pre140731.c29d2fde74d/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating anonymous function at /nix/store/98grm6apc87yp4whya0sszsjksn8spfv-nixpkgs-18.09pre140731.c29d2fde74d/nixpkgs/pkgs/development/interpreters/python/cpython/3.6/default.nix:85:42, called from undefined position:
while evaluating the attribute 'src' of the derivation 'tcl-8.6.6' at /nix/store/98grm6apc87yp4whya0sszsjksn8spfv-nixpkgs-18.09pre140731.c29d2fde74d/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:148:11:
opening lock file '/nix/store/pharxjr8465xa67chpbzcnqxmm55ym1c-tcl8.6.6-src.tar.gz.drv.lock': Permission denied
@bbarker
Copy link
Author

bbarker commented Jun 4, 2018

/nix/store/ needs to be writable by the user in question. Typically things can go badly if you run commands as root that modify the /nix/store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment