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,7 +1,7 @@
|
|||||||
# Template file for 'nix'
|
# Template file for 'nix'
|
||||||
pkgname=nix
|
pkgname=nix
|
||||||
version=2.2.2
|
version=2.2.2
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# Use /nix/var as suggested by the official Manual.
|
# Use /nix/var as suggested by the official Manual.
|
||||||
configure_args="--localstatedir=/nix/var --with-sandbox-shell=/bin/sh"
|
configure_args="--localstatedir=/nix/var --with-sandbox-shell=/bin/sh"
|
||||||
@ -55,7 +55,8 @@ pre_configure() {
|
|||||||
post_install() {
|
post_install() {
|
||||||
vmkdir etc/nix
|
vmkdir etc/nix
|
||||||
# Remove unused stuff.
|
# 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.
|
# Let users interact with the nix-daemon by default.
|
||||||
vmkdir etc/profile.d
|
vmkdir etc/profile.d
|
||||||
echo 'export NIX_REMOTE=daemon' > "${DESTDIR}"/etc/profile.d/nix-daemon.sh
|
echo 'export NIX_REMOTE=daemon' > "${DESTDIR}"/etc/profile.d/nix-daemon.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user