Package Details: nix 2.0.2-2

Git Clone URL: (read-only)
Package Base: nix
Description: A purely functional package manager
Upstream URL:
Licenses: LGPL
Submitter: None
Maintainer: asppsa
Last Packager: asppsa
Votes: 54
Popularity: 1.615043
First Submitted: 2008-04-12 18:35
Last Updated: 2018-05-24 12:34

Latest Comments

asppsa commented on 2018-05-24 12:41

urbanslug, try man nix-env. I don't think the nix command has a man page.

asppsa commented on 2018-05-24 12:36

I've added armv7h (untested) to the list as requested. I couldn't access the links from AGTT, so I haven't added aarch64

AGTT commented on 2018-04-29 21:47

I managed to compile on RaspBerry Pi 3B (aarch64) on ArchLinuxARM-aarch64 (, as well. I published my PKGBUILD for a single-user mode nix, along with my modifications (namely usage of -O0 instead of the default (-O3?)) at The PKGBUILD is named 'nix-2.0.1-7.rcp'. To build 'nix-2.0.1-7.rcp' these files would be required, in total (minimum): Makefile-mod nix-2.0.1-7.rcp

Such a command could be run: makepkg --syncdeps --needed -p 'nix-2.0.1-7.rcp'. See 'descr.txt' for details.

For version 2.0.2-1, please see

Eisfreak7 commented on 2018-04-08 11:32

It works on my raspberry pi (armv7h). Please add taht arch to the list.

urbanslug commented on 2018-04-04 14:51


Running man nix gives "No manual entry for nix" so I guess the man pages aren't "build built".

Darnor commented on 2018-02-14 10:30

Newest version is: 1.11.16

sha256: 0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c

Please update this package as because the build of the current 1.11.10 version fails.

asppsa commented on 2017-10-17 01:27

Here's a basic patch to upgrade to 1.11.15:

[edit1: moved to gist]
[edit2: added some sed lines which I needed to make nix-shell & friends work]

fusion809 commented on 2017-10-05 04:22

Version 1.11.15 builds fine though, so if you's want to bump it to that version your build problems should be a thing of the past.

fusion809 commented on 2017-10-05 03:42

Getting the same compilation error 'ere.

andrej84 commented on 2017-09-27 10:33

Getting these errors trying to build:

src/libmain/ In function ‘void nix::sigsegvHandler(int, siginfo_t*, void*)’:
src/libmain/ error: ‘ucontext’ was not declared in this scope
sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
src/libmain/ note: suggested alternative: ‘ucontext_t’
sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
src/libmain/ error: expected primary-expression before ‘)’ token
sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
src/libmain/ error: expected ‘)’ before ‘ctx’
sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
In file included from src/boost/format.hpp:57:0,
from src/libutil/types.hh:9,
from src/libmain/
src/boost/format/feed_args.hpp: At global scope:
src/boost/format/feed_args.hpp:40:8: warning: ‘void boost::io::detail::{anonymous}::do_pad(std::__cxx11::string&, std::streamsize, char, std::ios_base::fmtflags, bool)’ defined but not used [-Wunused-function]
void do_pad( std::string & s,
cc1plus: warning: unrecognized command line option ‘-Wno-unneeded-internal-declaration’
make: *** [mk/ src/libmain/stack.o] Error 1

anks commented on 2017-09-24 18:18

Currently not building:
==> Extracting sources...
-> Extracting nix-1.11.10.tar.xz with bsdtar
==> Starting build()...
src/libmain/ In function ‘void nix::sigsegvHandler(int, siginfo_t*, void*)’:
src/libmain/ error: ‘ucontext’ was not declared in this scope
sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];

asgeirbj commented on 2017-09-03 20:05

I did a quick update for 1.11.14 which looks like it works

FlorianJacob commented on 2017-03-30 22:28

Backlinking: There's a discussion at on how to install nix on Arch Linux / the missing steps after this package has been installed, linking for concrete directions on what to do.

k2s commented on 2016-04-08 22:20

/etc/profile.d/ in upstream doesn't play nice with multiuser setup (

NixOS uses different file to make that kind of setup work.

Some information sources:

I changed PKGBUILD which patches upstream source code with the currently not merged

oozyslug commented on 2015-09-06 11:39

hi marsam, I am no longer using nix package manager, so i will be disowning the package. You could adopt it if you are interested. Thank you for the heads up.

marsam commented on 2015-09-05 17:57

Hi, I've updated the pkgbuild for nix 1.10 thanks in advance.

vimes656 commented on 2015-04-12 08:55

For example, I'd like to use the system binary for `ghc` (currently version 7.10.1) but I also would like to use other versions of `ghc` installed with nix. If the nix path takes preference the name `ghc` is bound to any `ghc` installed with nix, regardless of its version. OTOH, if the system path takes preference, if I want to use the version from nix I just have to append the version, i.e. `ghc-7.6.3` (from nix) vs `ghc` (7.10.1 from arch).

I ended up using `systemd-nspawn` containers for this concrete case, so now I don't mind nix path taking preference that much.

(sorry for my late reply, I forgot to tick "watch notifications")

koral commented on 2015-03-30 17:12

I don't have any strong opinion on what makes more sense, but so far I've had no issue with the updated $PATH that gives preference to nix binaries. Do you have a case in point where this behavior hurts ?

vimes656 commented on 2015-03-30 16:02

The Nix `/bin/` and `/sbin` get prepended to the global $PATH, giving preference to the Nix binaries instead of Arch ones. Wouldn't it make more sense, specially since this is an Arch specific package, to give preference to the system binaries?

I could submit a patch with some sed magic if you agree.

koral commented on 2015-01-02 00:16

Adopted, and updated to 1.8

asppsa commented on 2014-10-10 07:21

I'm trying to set up the multiuser environment and am find that the nix-daemon.service file does not have an [Install] section, so it cannot be added using "systemctl enable ...". Could we patch this perhaps? I think the following is all that is needed:

Anntoin commented on 2014-04-16 10:56

Updated to 1.7

Anntoin commented on 2013-10-22 05:01

Updated to 1.6
Some new features in this release see:

Anntoin commented on 2013-07-21 22:17

Updated to 1.5.3
Bug fix release:

Anntoin commented on 2013-05-24 18:51

Updated to 1.5.2
Bug fix release:

Anntoin commented on 2013-03-05 23:35

Updated to 1.5.1
Bug fixing the bug fix:

Anntoin commented on 2013-02-28 14:37

Updated to 1.5
Fixes Regression in previous release, see:

Anntoin commented on 2013-02-27 14:41

Updated to 1.4
This release fixes a security issue relating to hard links:

Anntoin commented on 2013-01-07 23:13

Updated to 1.3
This is a bug-fix release, see the release notes here:

Anntoin commented on 2012-12-14 11:39

Adopted and updated to 1.2
Any issues/suggestions let me know.

Anonymous comment on 2012-08-16 16:39

Version 1.1 compiled with for me.

jumpcannon commented on 2012-08-02 17:11

Upstream is on version 1.1 now.

Synthead commented on 2010-09-02 20:46

Lots of problems in the PKGBUILD, this should work instead:

Anonymous comment on 2010-04-02 13:16

# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Rudolf Olah <>
pkgdesc="Nix is a purely functional package manager."
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install