nix: get rid of some unused files.
Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
parent
5214723e24
commit
a67589dd0b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue