Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] `nix-shell -p hello`, does not working.
@ 2020-02-09 12:43 voidlinux-github
  2020-02-09 12:45 ` voidlinux-github
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

New issue by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
Void 5.4.15_1 x86_64 GenuineIntel notuptodate hold rrDDDFFF
* package:  
  nix-2.3.2_2  

### Expected behavior
Want to work hello example of nix package manager without any issue.

### Actual behavior
After installing nix package, if you try to use: `nix-shell -p hello`, it'll produce this error:
```
warning: Nix search path entry '/home/linarcx/.nix-defexpr/channels' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
```
If you try it with __sudo__:
`error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`

Also, whenever you want to login again, you'll we see this message:
Also when i restart and login again in my system, it says:
```
mkdir: cannot create directory '/nix/var/nix/profiles/per-user/linarcx': Permission denied
WARNING: bad ownership on /nix/var/nix/profiles/per-user/linarcx
```


### Steps to reproduce the behavior
1. Install nix package
2. re-login



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
@ 2020-02-09 12:45 ` voidlinux-github
  2020-02-09 12:47 ` voidlinux-github
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583841087

Comment:
cc @xtraeme 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
  2020-02-09 12:45 ` voidlinux-github
@ 2020-02-09 12:47 ` voidlinux-github
  2020-02-09 12:49 ` voidlinux-github
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583841428

Comment:
How about reading about its usage? Their documentation is good. 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
  2020-02-09 12:45 ` voidlinux-github
  2020-02-09 12:47 ` voidlinux-github
@ 2020-02-09 12:49 ` voidlinux-github
  2020-02-09 12:49 ` voidlinux-github
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583841615

Comment:
If you tried to run it via sudo means that you didn't read anything about it. This is now how things work

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (2 preceding siblings ...)
  2020-02-09 12:49 ` voidlinux-github
@ 2020-02-09 12:49 ` voidlinux-github
  2020-02-09 12:50 ` voidlinux-github
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583841615

Comment:
If you tried to run it via sudo means that you didn't read anything about it. This is not how things work

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (3 preceding siblings ...)
  2020-02-09 12:49 ` voidlinux-github
@ 2020-02-09 12:50 ` voidlinux-github
  2020-02-09 14:07 ` voidlinux-github
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 12:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583841722

Comment:
If you expect someone to give you step by step instructions I won't be that guy

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (4 preceding siblings ...)
  2020-02-09 12:50 ` voidlinux-github
@ 2020-02-09 14:07 ` voidlinux-github
  2020-02-09 14:08 ` voidlinux-github
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 14:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583849387

Comment:
You mean here:
https://nixos.org/nix/manual/#chap-installation

But it gives me errors:
```
╰   sh <(curl https://nixos.org/nix/install) --no-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2399  100  2399    0     0   2403      0 --:--:-- --:--:-- --:--:--  2401
downloading Nix 2.3.2 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.iXZZCLO5FP'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.1M  100 15.1M    0     0   373k      0  0:00:41  0:00:41 --:--:--  418k
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/proc/self/fd/11: failed to unpack 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz'
```

If you mean this part:
https://nixos.org/nix/manual/#ch-basic-package-mgmt

I got these errors:
```
 nix-channel --update                      
unpacking channels...
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed with exit code 1
error: build of '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed
```
error: program '/usr/bin/nix-env' failed with exit code 100

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (5 preceding siblings ...)
  2020-02-09 14:07 ` voidlinux-github
@ 2020-02-09 14:08 ` voidlinux-github
  2020-02-09 14:10 ` voidlinux-github
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 14:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583849387

Comment:
You mean here:
https://nixos.org/nix/manual/#chap-installation

But it gives me errors:
```
╰   sh <(curl https://nixos.org/nix/install) --no-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2399  100  2399    0     0   2403      0 --:--:-- --:--:-- --:--:--  2401
downloading Nix 2.3.2 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.iXZZCLO5FP'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.1M  100 15.1M    0     0   373k      0  0:00:41  0:00:41 --:--:--  418k
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/proc/self/fd/11: failed to unpack 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz'
```

If you mean this part:
https://nixos.org/nix/manual/#ch-basic-package-mgmt

I got these errors:
```
 nix-channel --update                      
unpacking channels...
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed with exit code 1
error: build of '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed
error: program '/usr/bin/nix-env' failed with exit code 100
```


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (6 preceding siblings ...)
  2020-02-09 14:08 ` voidlinux-github
@ 2020-02-09 14:10 ` voidlinux-github
  2020-02-09 14:25 ` voidlinux-github
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 14:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583849387

Comment:
You mean here?
https://nixos.org/nix/manual/#chap-installation

But it gives me errors:
```
╰   sh <(curl https://nixos.org/nix/install) --no-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2399  100  2399    0     0   2403      0 --:--:-- --:--:-- --:--:--  2401
downloading Nix 2.3.2 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.iXZZCLO5FP'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.1M  100 15.1M    0     0   373k      0  0:00:41  0:00:41 --:--:--  418k
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/proc/self/fd/11: failed to unpack 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz'
```

If you mean this part:
https://nixos.org/nix/manual/#ch-basic-package-mgmt

I got these errors:
```
 nix-channel --update                      
unpacking channels...
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed with exit code 1
error: build of '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed
error: program '/usr/bin/nix-env' failed with exit code 100
```


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (7 preceding siblings ...)
  2020-02-09 14:10 ` voidlinux-github
@ 2020-02-09 14:25 ` voidlinux-github
  2020-02-09 14:26 ` voidlinux-github
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 14:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1904 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583849387

Comment:
You mean here?
https://nixos.org/nix/manual/#chap-installation

But it gives me errors:
```
╰   sh <(curl https://nixos.org/nix/install) --no-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2399  100  2399    0     0   2403      0 --:--:-- --:--:-- --:--:--  2401
downloading Nix 2.3.2 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.iXZZCLO5FP'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.1M  100 15.1M    0     0   373k      0  0:00:41  0:00:41 --:--:--  418k
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/proc/self/fd/11: failed to unpack 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz'
```

If you mean this part:
https://nixos.org/nix/manual/#ch-basic-package-mgmt

I got these errors:
```
 nix-channel --update                      
unpacking channels...
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed with exit code 1
error: build of '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed
error: program '/usr/bin/nix-env' failed with exit code 100
```

Edit: Same issue:
https://aur.archlinux.org/packages/nix/#comment-726728

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (8 preceding siblings ...)
  2020-02-09 14:25 ` voidlinux-github
@ 2020-02-09 14:26 ` voidlinux-github
  2020-02-09 17:52 ` voidlinux-github
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 14:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583849387

Comment:
You mean here?
https://nixos.org/nix/manual/#chap-installation

But it gives me errors:
```
╰   sh <(curl https://nixos.org/nix/install) --no-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2399  100  2399    0     0   2403      0 --:--:-- --:--:-- --:--:--  2401
downloading Nix 2.3.2 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.iXZZCLO5FP'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.1M  100 15.1M    0     0   373k      0  0:00:41  0:00:41 --:--:--  418k
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/proc/self/fd/11: failed to unpack 'https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz'
```

If you mean this part:
https://nixos.org/nix/manual/#ch-basic-package-mgmt

I got these errors:
```
 nix-channel --update                      
unpacking channels...
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed with exit code 1
error: build of '/nix/store/b8l4jqfrjdpb1mji2p162bbw98zia0lp-nixpkgs-20.03pre211998.57ed5db343f.drv' failed
error: program '/usr/bin/nix-env' failed with exit code 100
```


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (9 preceding siblings ...)
  2020-02-09 14:26 ` voidlinux-github
@ 2020-02-09 17:52 ` voidlinux-github
  2020-02-09 20:30 ` voidlinux-github
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 17:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583873450

Comment:
Read the log you copy/paste: you probably missing `xz` (case #1) and `bash`  (case #2)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (10 preceding siblings ...)
  2020-02-09 17:52 ` voidlinux-github
@ 2020-02-09 20:30 ` voidlinux-github
  2020-02-13 16:54 ` voidlinux-github
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-09 20:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-583889604

Comment:
> Read the log you copy/paste: you probably missing `xz` (case #1) and `bash` (case #2)

So, what can I do? 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (11 preceding siblings ...)
  2020-02-09 20:30 ` voidlinux-github
@ 2020-02-13 16:54 ` voidlinux-github
  2020-02-13 16:58 ` voidlinux-github
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-13 16:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

New comment by mephistopheles-8 on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-585858384

Comment:
I also had issues getting Nix to work out-of-the box on Void. 

The problems with `bash` and `xz` stem from those programs not being linked in the Nix sandbox.  I temporarily added `build-use-sandbox=false` to `/etc/nix/nix.conf` before running `nix-channel --update`.    

There is an option, `build-sandbox-paths`, that may be of interest.  Mine is set to the following, but I've only done limited testing and have not verified that it matters:

    build-sandbox-paths = /bin/sh=/bin/sh /usr/bin/bash=/usr/bin/bash /usr/bin/bzip2=/usr/bin/bzip2 /usr/bin/env=/usr/bin/env /usr/bin/gzip=/usr/bin/gzip /usr/bin/mkdir=/usr/bin/mkdir /usr/bin/mv=/usr/bin/mv /usr/bin/tar=/usr/bin/tar /usr/bin/tr=/usr/bin/tr /usr/bin/xz=/usr/bin/xz

The following might be relevant:
https://github.com/NixOS/nix/issues/3337
https://github.com/NixOS/nix/issues/2673
https://github.com/asppsa/archlinux-nix


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not working.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (12 preceding siblings ...)
  2020-02-13 16:54 ` voidlinux-github
@ 2020-02-13 16:58 ` voidlinux-github
  2020-03-19 17:56 ` `nix-shell -p hello`, does not work kmltdr
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: voidlinux-github @ 2020-02-13 16:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

New comment by mephistopheles-8 on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-585858384

Comment:
I also had issues getting Nix to work out-of-the box on Void. 

The problems with `bash` and `xz` stem from those programs not being linked in the Nix sandbox.  I temporarily added `build-use-sandbox=false` to `/etc/nix/nix.conf` before running `nix-channel --update` for the first time.  It seems to work now.

There is an option, `build-sandbox-paths`, that may be of interest.  Mine is set to the following, but I've only done limited testing and have not verified that it matters:

    build-sandbox-paths = /bin/sh=/bin/sh /usr/bin/bash=/usr/bin/bash /usr/bin/bzip2=/usr/bin/bzip2 /usr/bin/env=/usr/bin/env /usr/bin/gzip=/usr/bin/gzip /usr/bin/mkdir=/usr/bin/mkdir /usr/bin/mv=/usr/bin/mv /usr/bin/tar=/usr/bin/tar /usr/bin/tr=/usr/bin/tr /usr/bin/xz=/usr/bin/xz

The following might be relevant:
https://github.com/NixOS/nix/issues/3337
https://github.com/NixOS/nix/issues/2673
https://github.com/asppsa/archlinux-nix


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not work.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (13 preceding siblings ...)
  2020-02-13 16:58 ` voidlinux-github
@ 2020-03-19 17:56 ` kmltdr
  2020-03-20  9:10 ` [ISSUE] [CLOSED] " xtraeme
  2020-03-20  9:11 ` xtraeme
  16 siblings, 0 replies; 18+ messages in thread
From: kmltdr @ 2020-03-19 17:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

New comment by kmltdr on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-601327434

Comment:
I had exactly the same problem, but thanks to @mephistopheles-8's suggestion, I managed to run hello example. What I did:
- add myself to `nixbld` group
- enable nix-daemon: `ln -s /etc/sv/nix-daemon/ /var/service/`
- add `build-use-sandbox = false` to `/etc/nix/nix.conf `
- add nixpkgs-unstable channel: `nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs`


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ISSUE] [CLOSED] `nix-shell -p hello`, does not work.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (14 preceding siblings ...)
  2020-03-19 17:56 ` `nix-shell -p hello`, does not work kmltdr
@ 2020-03-20  9:10 ` xtraeme
  2020-03-20  9:11 ` xtraeme
  16 siblings, 0 replies; 18+ messages in thread
From: xtraeme @ 2020-03-20  9:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]

Closed issue by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/18970

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
Void 5.4.15_1 x86_64 GenuineIntel notuptodate hold rrDDDFFF
* package:  
  nix-2.3.2_2  

### Expected behavior
I want to see a properly working __hello__ example of nix package manager without any issue.

### Actual behavior
After installing nix package, if you try to use: `nix-shell -p hello`, it'll produce this error:
```
warning: Nix search path entry '/home/linarcx/.nix-defexpr/channels' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
```
If you try it with __sudo__:
`error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`

Also, whenever you want to login again, you'll we see this message:
Also when i restart and login again in my system, it says:
```
mkdir: cannot create directory '/nix/var/nix/profiles/per-user/linarcx': Permission denied
WARNING: bad ownership on /nix/var/nix/profiles/per-user/linarcx
```


### Steps to reproduce the behavior
1. Install nix package
2. re-login



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: `nix-shell -p hello`, does not work.
  2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
                   ` (15 preceding siblings ...)
  2020-03-20  9:10 ` [ISSUE] [CLOSED] " xtraeme
@ 2020-03-20  9:11 ` xtraeme
  16 siblings, 0 replies; 18+ messages in thread
From: xtraeme @ 2020-03-20  9:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/18970#issuecomment-601599371

Comment:
@kmltdr thanks for the info, I've updated the pkg to set `build-use-sandbox = false` for now.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-03-20  9:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-09 12:43 [ISSUE] `nix-shell -p hello`, does not working voidlinux-github
2020-02-09 12:45 ` voidlinux-github
2020-02-09 12:47 ` voidlinux-github
2020-02-09 12:49 ` voidlinux-github
2020-02-09 12:49 ` voidlinux-github
2020-02-09 12:50 ` voidlinux-github
2020-02-09 14:07 ` voidlinux-github
2020-02-09 14:08 ` voidlinux-github
2020-02-09 14:10 ` voidlinux-github
2020-02-09 14:25 ` voidlinux-github
2020-02-09 14:26 ` voidlinux-github
2020-02-09 17:52 ` voidlinux-github
2020-02-09 20:30 ` voidlinux-github
2020-02-13 16:54 ` voidlinux-github
2020-02-13 16:58 ` voidlinux-github
2020-03-19 17:56 ` `nix-shell -p hello`, does not work kmltdr
2020-03-20  9:10 ` [ISSUE] [CLOSED] " xtraeme
2020-03-20  9:11 ` xtraeme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).