nix: fix sandbox-shell path

This fixes #9805 which prevents newly-installed nix from working
as no sandbox shell has been set during the configure step.

closes #9863
closes #9805
This commit is contained in:
Vincent Tavernier 2019-03-15 12:32:39 +01:00 committed by maxice8
parent aead99ec2c
commit 15aeffa7ca
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 10 additions and 9 deletions

View File

@ -1,15 +1,23 @@
# Template file for 'nix'
pkgname=nix
version=2.2.1
revision=2
revision=3
build_style=gnu-configure
# Use /nix/var as suggested by the official Manual.
configure_args="--localstatedir=/nix/var"
configure_args="--localstatedir=/nix/var --with-sandbox-shell=/bin/sh"
hostmakedepends="autoconf automake curl libtool pkg-config flex"
makedepends="boost-devel brotli-devel bzip2-devel gc-devel libcurl-devel
liblzma-devel libressl-devel libsodium-devel pkg-config sqlite-devel
libseccomp-devel editline-devel"
depends="curl xz"
short_desc="Purely functional package manager"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://nixos.org/nix/"
changelog="https://nixos.org/releases/${pkgname}/${pkgname}-${version}/manual/#sec-relnotes"
distfiles="https://nixos.org/releases/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.xz"
checksum=85f8d3518060803e44e51b1a9ada1a39cea904b36a632ba1844043a0b63be515
# Default configuration file.
conf_files="/etc/nix/nix.conf"
# Create required build users/groups.
@ -31,13 +39,6 @@ make_dirs="
/nix/var/nix/userpool 0755 root root
/nix/var/nix/db 0755 root root
/nix/store 1775 root nixbld"
short_desc="Purely functional package manager"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://nixos.org/nix/"
changelog="https://nixos.org/releases/${pkgname}/${pkgname}-${version}/manual/#sec-relnotes"
distfiles="https://nixos.org/releases/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.xz"
checksum=85f8d3518060803e44e51b1a9ada1a39cea904b36a632ba1844043a0b63be515
case "${XBPS_TARGET_MACHINE}" in
armv[56]*)