mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
update to 2.0
This commit is contained in:
10
.SRCINFO
10
.SRCINFO
@@ -1,6 +1,6 @@
|
||||
pkgbase = nix
|
||||
pkgdesc = A purely functional package manager
|
||||
pkgver = 1.11.16
|
||||
pkgver = 2.0
|
||||
pkgrel = 1
|
||||
url = https://nixos.org/nix
|
||||
install = nix.install
|
||||
@@ -10,14 +10,10 @@ pkgbase = nix
|
||||
makedepends = bzip2
|
||||
makedepends = gc
|
||||
makedepends = openssl
|
||||
depends = perl-www-curl
|
||||
depends = perl-dbd-sqlite
|
||||
depends = gc
|
||||
depends = libsodium
|
||||
source = https://nixos.org/releases/nix/nix-1.11.16/nix-1.11.16.tar.xz
|
||||
source = fix_perllibdir.patch
|
||||
sha256sums = 0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c
|
||||
sha256sums = 6d5a79602944b560f9b571c8db4efa1b26d4495e6160c5e18c2efbdd2e611c80
|
||||
source = https://nixos.org/releases/nix/nix-2.0/nix-2.0.tar.xz
|
||||
sha256sums = 7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14
|
||||
|
||||
pkgname = nix
|
||||
|
||||
|
||||
14
PKGBUILD
14
PKGBUILD
@@ -1,25 +1,25 @@
|
||||
# Maintainer: Vlad M. <vlad@archlinux.net>
|
||||
# Maintainer: Felix Morgner <felix.morgner@gmail.com>
|
||||
# Contributor: Vlad M. <vlad@archlinux.net>
|
||||
# Contributor: Mario Rodas
|
||||
# Contributor: Oozyslug <oozyslug at gmail dot com>
|
||||
# Contributor: koral <koral at mailoo dot org>
|
||||
|
||||
pkgname=nix
|
||||
pkgver=1.11.16
|
||||
pkgver=2.0
|
||||
pkgrel=1
|
||||
pkgdesc="A purely functional package manager"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://nixos.org/nix"
|
||||
license=('LGPL')
|
||||
depends=('perl-www-curl' 'perl-dbd-sqlite' 'gc' 'libsodium')
|
||||
depends=('gc' 'libsodium')
|
||||
makedepends=('bzip2' 'gc' 'openssl')
|
||||
install=nix.install
|
||||
source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz" "fix_perllibdir.patch")
|
||||
sha256sums=('0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c'
|
||||
'6d5a79602944b560f9b571c8db4efa1b26d4495e6160c5e18c2efbdd2e611c80')
|
||||
source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz")
|
||||
sha256sums=('7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14')
|
||||
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch -Np1 -i "${srcdir}/fix_perllibdir.patch"
|
||||
}
|
||||
|
||||
build () {
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -ura a/Makefile.config.in b/Makefile.config.in
|
||||
--- a/Makefile.config.in 1970-01-01 00:00:01.000000000 +0000
|
||||
+++ b/Makefile.config.in 2017-09-03 17:04:53.032445157 +0000
|
||||
@@ -26,7 +26,7 @@
|
||||
mandir = @mandir@
|
||||
perl = @perl@
|
||||
perlbindings = @perlbindings@
|
||||
-perllibdir = @perllibdir@
|
||||
+perllibdir = $(shell perl -V:vendorarch|cut -d\' -f2)
|
||||
pkglibdir = $(libdir)/$(PACKAGE_NAME)
|
||||
prefix = @prefix@
|
||||
storedir = @storedir@
|
||||
36
nix.install
36
nix.install
@@ -49,27 +49,33 @@ restore_store() {
|
||||
chown root.root /nix/store
|
||||
}
|
||||
|
||||
init_channels() {
|
||||
# Initialize default nix channel
|
||||
echo "Initializing default nix channel"
|
||||
source /etc/profile.d/nix.sh
|
||||
nix-channel --update
|
||||
}
|
||||
|
||||
daemon_info() {
|
||||
if [ ! -d /nix/var/nix/profiles/per-user/root ]; then
|
||||
echo "To start the nix daemon, execute one of the following:"
|
||||
echo
|
||||
echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot"
|
||||
echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too"
|
||||
echo
|
||||
echo "Also, if this is a new install, you need to start a new login shell or otherwise"
|
||||
echo
|
||||
echo " source /etc/profile.d/nix.sh"
|
||||
echo " source /etc/profile.d/nix-daemon.sh"
|
||||
echo
|
||||
echo "Once your environment is set-up, you will need to add some channels. You can see how"
|
||||
echo "to do that here:"
|
||||
echo " https://nixos.org/nix/manual/#sec-channels"
|
||||
fi
|
||||
echo "To start the nix daemon, execute one of the following:"
|
||||
echo
|
||||
echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot"
|
||||
echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too"
|
||||
echo
|
||||
echo "Also, if this is a new install, you need to start a new login shell or otherwise"
|
||||
echo
|
||||
echo " source /etc/profile.d/nix.sh"
|
||||
echo " source /etc/profile.d/nix-daemon.sh"
|
||||
echo
|
||||
echo "Once your environment is set-up, you will need to add some channels. You can see how"
|
||||
echo "to do that here:"
|
||||
echo " https://nixos.org/nix/manual/#sec-channels"
|
||||
}
|
||||
|
||||
post_install() {
|
||||
create_users
|
||||
create_store
|
||||
init_channels
|
||||
daemon_info
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user