aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-02-23 14:43:31 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-02-23 14:43:31 +0100
commitf9ec4c69328af0341fab4f5abf508433a288d02f (patch)
tree2d6561e55d31aae45c1709555d0754642b0169fc
parent163f3e505c7d550dc91ed7807a3535b8a40c49fb (diff)
downloadAUR-f9ec4c69328af0341fab4f5abf508433a288d02f.tar.gz
AUR-f9ec4c69328af0341fab4f5abf508433a288d02f.tar.zst
AUR-f9ec4c69328af0341fab4f5abf508433a288d02f.zip
update to 2.0
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD14
-rw-r--r--fix_perllibdir.patch12
-rw-r--r--nix.install36
4 files changed, 31 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 13e7aed..e303f97 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
1pkgbase = nix 1pkgbase = nix
2 pkgdesc = A purely functional package manager 2 pkgdesc = A purely functional package manager
3 pkgver = 1.11.16 3 pkgver = 2.0
4 pkgrel = 1 4 pkgrel = 1
5 url = https://nixos.org/nix 5 url = https://nixos.org/nix
6 install = nix.install 6 install = nix.install
@@ -10,14 +10,10 @@ pkgbase = nix
10 makedepends = bzip2 10 makedepends = bzip2
11 makedepends = gc 11 makedepends = gc
12 makedepends = openssl 12 makedepends = openssl
13 depends = perl-www-curl
14 depends = perl-dbd-sqlite
15 depends = gc 13 depends = gc
16 depends = libsodium 14 depends = libsodium
17 source = https://nixos.org/releases/nix/nix-1.11.16/nix-1.11.16.tar.xz 15 source = https://nixos.org/releases/nix/nix-2.0/nix-2.0.tar.xz
18 source = fix_perllibdir.patch 16 sha256sums = 7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14
19 sha256sums = 0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c
20 sha256sums = 6d5a79602944b560f9b571c8db4efa1b26d4495e6160c5e18c2efbdd2e611c80
21 17
22pkgname = nix 18pkgname = nix
23 19
diff --git a/PKGBUILD b/PKGBUILD
index 3189ef8..3eb7557 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,25 @@
1# Maintainer: Vlad M. <vlad@archlinux.net> 1# Maintainer: Felix Morgner <felix.morgner@gmail.com>
2# Contributor: Vlad M. <vlad@archlinux.net>
2# Contributor: Mario Rodas 3# Contributor: Mario Rodas
3# Contributor: Oozyslug <oozyslug at gmail dot com> 4# Contributor: Oozyslug <oozyslug at gmail dot com>
4# Contributor: koral <koral at mailoo dot org> 5# Contributor: koral <koral at mailoo dot org>
5 6
6pkgname=nix 7pkgname=nix
7pkgver=1.11.16 8pkgver=2.0
8pkgrel=1 9pkgrel=1
9pkgdesc="A purely functional package manager" 10pkgdesc="A purely functional package manager"
10arch=('i686' 'x86_64') 11arch=('i686' 'x86_64')
11url="https://nixos.org/nix" 12url="https://nixos.org/nix"
12license=('LGPL') 13license=('LGPL')
13depends=('perl-www-curl' 'perl-dbd-sqlite' 'gc' 'libsodium') 14depends=('gc' 'libsodium')
14makedepends=('bzip2' 'gc' 'openssl') 15makedepends=('bzip2' 'gc' 'openssl')
15install=nix.install 16install=nix.install
16source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz" "fix_perllibdir.patch") 17source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz")
17sha256sums=('0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c' 18sha256sums=('7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14')
18 '6d5a79602944b560f9b571c8db4efa1b26d4495e6160c5e18c2efbdd2e611c80') 19
19 20
20prepare() { 21prepare() {
21 cd "$pkgname-$pkgver" 22 cd "$pkgname-$pkgver"
22 patch -Np1 -i "${srcdir}/fix_perllibdir.patch"
23} 23}
24 24
25build () { 25build () {
diff --git a/fix_perllibdir.patch b/fix_perllibdir.patch
deleted file mode 100644
index 2cb718b..0000000
--- a/fix_perllibdir.patch
+++ /dev/null
@@ -1,12 +0,0 @@
1diff -ura a/Makefile.config.in b/Makefile.config.in
2--- a/Makefile.config.in 1970-01-01 00:00:01.000000000 +0000
3+++ b/Makefile.config.in 2017-09-03 17:04:53.032445157 +0000
4@@ -26,7 +26,7 @@
5 mandir = @mandir@
6 perl = @perl@
7 perlbindings = @perlbindings@
8-perllibdir = @perllibdir@
9+perllibdir = $(shell perl -V:vendorarch|cut -d\' -f2)
10 pkglibdir = $(libdir)/$(PACKAGE_NAME)
11 prefix = @prefix@
12 storedir = @storedir@
diff --git a/nix.install b/nix.install
index e9adc0c..613cee6 100644
--- a/nix.install
+++ b/nix.install
@@ -49,27 +49,33 @@ restore_store() {
49 chown root.root /nix/store 49 chown root.root /nix/store
50} 50}
51 51
52init_channels() {
53 # Initialize default nix channel
54 echo "Initializing default nix channel"
55 source /etc/profile.d/nix.sh
56 nix-channel --update
57}
58
52daemon_info() { 59daemon_info() {
53 if [ ! -d /nix/var/nix/profiles/per-user/root ]; then 60 echo "To start the nix daemon, execute one of the following:"
54 echo "To start the nix daemon, execute one of the following:" 61 echo
55 echo 62 echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot"
56 echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot" 63 echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too"
57 echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too" 64 echo
58 echo 65 echo "Also, if this is a new install, you need to start a new login shell or otherwise"
59 echo "Also, if this is a new install, you need to start a new login shell or otherwise" 66 echo
60 echo 67 echo " source /etc/profile.d/nix.sh"
61 echo " source /etc/profile.d/nix.sh" 68 echo " source /etc/profile.d/nix-daemon.sh"
62 echo " source /etc/profile.d/nix-daemon.sh" 69 echo
63 echo 70 echo "Once your environment is set-up, you will need to add some channels. You can see how"
64 echo "Once your environment is set-up, you will need to add some channels. You can see how" 71 echo "to do that here:"
65 echo "to do that here:" 72 echo " https://nixos.org/nix/manual/#sec-channels"
66 echo " https://nixos.org/nix/manual/#sec-channels"
67 fi
68} 73}
69 74
70post_install() { 75post_install() {
71 create_users 76 create_users
72 create_store 77 create_store
78 init_channels
73 daemon_info 79 daemon_info
74} 80}
75 81