aboutsummaryrefslogtreecommitdiff
path: root/nix/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'nix/PKGBUILD')
-rw-r--r--nix/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/nix/PKGBUILD b/nix/PKGBUILD
new file mode 100644
index 0000000..faea9db
--- /dev/null
+++ b/nix/PKGBUILD
@@ -0,0 +1,41 @@
1# Maintainer: Alastair Pharo <asppsa at gmail dot com>
2# Contributor: Felix Morgner <felix.morgner@gmail.com>
3# Contributor: Vlad M. <vlad@archlinux.net>
4# Contributor: Mario Rodas
5# Contributor: Oozyslug <oozyslug at gmail dot com>
6# Contributor: koral <koral at mailoo dot org>
7# Contributor: Anders Bennehag
8
9pkgname=nix
10pkgver=2.2.2
11pkgrel=1
12pkgdesc="A purely functional package manager"
13arch=('i686' 'x86_64' 'armv7h')
14url="https://nixos.org/nix"
15license=('LGPL')
16depends=('gc' 'libsodium' 'boost' 'brotli' 'editline' 'dash-static')
17makedepends=('bzip2' 'gc' 'openssl')
18install=nix.install
19source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz")
20sha256sums=('f80a1b4f9837a8d33209f0b7769d5038335459ff4303eccf3e9217a9eca8594c')
21
22
23prepare() {
24 cd "$pkgname-$pkgver"
25}
26
27build () {
28 cd "$pkgname-$pkgver"
29 ./configure --prefix=/usr \
30 --libexecdir="/usr/lib/$pkgname" \
31 --sysconfdir=/etc \
32 --with-sandbox-shell=/usr/bin/dash-static \
33 --enable-gc
34 make
35}
36
37package() {
38 cd "$pkgname-$pkgver"
39 make DESTDIR="$pkgdir" install
40 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41}