Package Details: nix 2.3.1-2

Git Clone URL: (read-only, click to copy)
Package Base: nix
Description: A purely functional package manager
Upstream URL:
Licenses: LGPL
Submitter: None
Maintainer: asppsa (shaugh)
Last Packager: asppsa
Votes: 65
Popularity: 0.27
First Submitted: 2008-04-12 18:35
Last Updated: 2019-11-21 13:40

Latest Comments

1 2 3 4 5 6 ... Next › Last »

asppsa commented on 2019-11-21 13:41

@vladan, thanks for that - I've applied that patch now.

vladan commented on 2019-11-20 09:12

This worked for me

mitsakis commented on 2019-10-21 12:12

Build fails for me. You need this patch:

asppsa commented on 2019-10-15 11:26

OK, so we have upgraded to 2.3.1. I also removed the hard dependency on archlinux-nix, as I got some feedback that not everyone wants to use this, so it's now optdepends.

asppsa commented on 2019-10-07 12:41

@jsomedon, please try systemctl enable nix-daemon.socket. PS. This package is out of date, but the upgrade doesn't seem straight-forward, so if anyone has had any luck compiling 2.3, your help would be much appreciated!

jsomedon commented on 2019-10-07 07:33

I just installed and I am trying to set things up by following wiki.

I get this error:

error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory

upon running this command:

nix-channel --add nix-channel --update nix-env -u

sikmir commented on 2019-05-24 10:34

I've created, let's collect there all tips and tricks how get Nix worked on Arch.

asppsa commented on 2019-05-07 14:38

Ok, so I've cleaned up my helper script and uploaded it to AUR. It's now listed as a dependency for this package and does the following:

  • handles setting up of build users (previously in the .install file)
  • downloads binaries from nixpkgs to use in the build sandbox, lists them in nix.conf
  • handles launching/enabling of nix-daemon

This should all be done automatically when this package is installed/upgraded. Hopefully this resolves all the issues people are seeing with nix-channel --update. If not, let me know.

immae commented on 2019-05-06 08:06

Linking this discussion from #nixos:

In summary, compiling nix from "outside" of nix hardcodes some paths like /usr/bin/bash, /usr/bin/mkdir, ... in the compiled binary. So in theory it could fail anywhere (however I only ever had the problem with nix-channel), and not much can be done against it apart from compiling all those tools statically and adding them to the sandbox path.

It’s quite sad actually...

immae commented on 2019-05-06 07:55

@asppsa: Ok, sorry I missed that part of the discussion.

nix-channel --update doesn’t work either for me (I don’t use nix-channels), but I think it’s a global nix problem, not a packaging one: nix-channel is getting abandoned little by little and replaced with other mechanisms (I know, it’s still too present in configurations, I’m not the one making the changes :p ).

A workaround to make nix-channel work is to set sandbox = false in /etc/nix/nix.conf (and restart nix-daemon.service) while using this command, although I would recommend using that setting only for that command (and set it to true, the default since nix 2.1, for the rest of the time)

The proposed change with dash-static is for the rest of the nix commands (nix-build in particular). It is not used if you have sandbox = false. Any static sh-like could do the job but Archlinux doesn’t package any, so I had to package it myself