Hi, Artyom V. Poptsov schreef op ma 17-01-2022 om 22:14 [+0300]: > [...] > > Guix doesn't do staged installation > > Unfortunately it seems to me that libtree fails when I remove > '(string-append "DESTDIR=" #$output)' from the make flags. > > The reason is this code from libtree Makefile: > > --8<---------------cut here---------------start------------->8--- > install: all > mkdir -p $(DESTDIR)$(BINDIR) > cp -p libtree $(DESTDIR)$(BINDIR) > mkdir -p $(DESTDIR)$(SHAREDIR)/man/man1 > cp -p doc/libtree.1 $(DESTDIR)$(SHAREDIR)/man/man1 > --8<---------------cut here---------------end--------------->8--- > > As you can see it's using 'DESTDIR' as prefix for the installation. SHAREDIR is set to $(PREFIX)/share in the Makefile. It seems to work for me, the attached package definition builds and the store item has a man page and a binary. Greetings, Maxime.