Package Details: nix 2.3.1-1

Git Clone URL: https://aur.archlinux.org/nix.git (read-only)
Package Base: nix
Description: A purely functional package manager
Upstream URL: https://nixos.org/nix
Licenses: LGPL
Submitter: None
Maintainer: asppsa (shaugh)
Last Packager: asppsa
Votes: 65
Popularity: 1.03
First Submitted: 2008-04-12 18:35
Last Updated: 2019-10-15 11:13

Latest Comments

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

mitsakis commented on 2019-10-21 12:12

Build fails for me. You need this patch: https://github.com/NixOS/nix/pull/3154/commits/fcf198d4e7371427648832554d3771ef6c99a55d

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 https://nixos.org/channels/nixpkgs-unstable nix-channel --update nix-env -u

sikmir commented on 2019-05-24 10:34

I've created https://wiki.archlinux.org/index.php/Nix, 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: https://logs.nix.samueldr.com/nixos/2019-02-06#1938291

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

asppsa commented on 2019-05-06 04:40

@immae, ok I've added editline. I'm still finding however that dash-static doesn't fix the issues with nix-channel --update.

asppsa commented on 2019-05-06 03:30

@janat08 could you elaborate on what the issue you are seeing is? Is it the nix-channel error, or something else?