New package: nix-1.6.
This commit is contained in:
parent
a4a6782594
commit
66412ad8de
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Helper daemon for managing secure, multi-user Nix stores
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/nix-daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,42 @@
|
|||
# Template file for 'nix'
|
||||
pkgname=nix
|
||||
version=1.6
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
# Use /nix/var as suggested by the official Manual.
|
||||
configure_args="ac_cv_path_curl=/usr/bin/curl --localstatedir=/nix/var"
|
||||
hostmakedepends="pkg-config flex"
|
||||
makedepends="bzip2-devel openssl-devel sqlite-devel gc-devel perl-WWW-Curl perl-DBD-SQLite"
|
||||
short_desc="A purely functional package manager"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="http://nixos.org/nix/"
|
||||
distfiles="http://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz"
|
||||
checksum=2e451a6ad0b43997d8df71d29a7d20ef42f7715fe16efbf4b53bdcdd1d5227fe
|
||||
|
||||
post_install() {
|
||||
# Remove unused stuff.
|
||||
rm -rf ${DESTDIR}/usr/include ${DESTDIR}/nix ${DESTDIR}/etc/nix
|
||||
# Let users interact with the nix-daemon by default.
|
||||
vmkdir etc/profile.d
|
||||
echo 'export NIX_REMOTE=daemon' > ${DESTDIR}/etc/profile.d/nix-daemon.sh
|
||||
# Install nix-daemon systemd service.
|
||||
vinstall ${FILESDIR}/nix-daemon.service 644 usr/lib/systemd/system
|
||||
}
|
||||
|
||||
nix_package() {
|
||||
depends="perl-WWW-Curl perl-DBD-SQLite"
|
||||
systemd_service="nix-daemon.service on"
|
||||
make_dirs="
|
||||
/nix/var/log/nix/drvs 0755 root root
|
||||
/nix/var/nix/profiles 0755 root root
|
||||
/nix/var/nix/temproots 0755 root root
|
||||
/nix/var/nix/gcroots 0755 root root
|
||||
/nix/var/nix/manifests 0755 root root
|
||||
/nix/var/nix/userpool 0755 root root
|
||||
/nix/var/nix/db 0755 root root
|
||||
/nix/store 0755 root root"
|
||||
pkg_install() {
|
||||
vmove all
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue