nix: get rid of some unused files.

Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
Juan RP 2019-06-16 00:58:19 +02:00
parent 5214723e24
commit a67589dd0b
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368

View file

@ -1,7 +1,7 @@
# Template file for 'nix'
pkgname=nix
version=2.2.2
revision=2
revision=3
build_style=gnu-configure
# Use /nix/var as suggested by the official Manual.
configure_args="--localstatedir=/nix/var --with-sandbox-shell=/bin/sh"
@ -55,7 +55,8 @@ pre_configure() {
post_install() {
vmkdir etc/nix
# Remove unused stuff.
rm -rf "${DESTDIR}"/usr/include "${DESTDIR}"/nix "${DESTDIR}"/etc/init
rm -rf ${DESTDIR}/usr/include ${DESTDIR}/nix ${DESTDIR}/etc/init
rm -rf ${DESTDIR}/usr/lib/systemd ${DESTDIR}/usr/lib/pkgconfig
# 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