forked from lix-project/lix
* Don't use a hard-coded path.
This commit is contained in:
parent
9486dda115
commit
af7e6fe22e
|
@ -41,6 +41,7 @@ AC_CONFIG_FILES([Makefile
|
||||||
corepkgs/Makefile
|
corepkgs/Makefile
|
||||||
corepkgs/fetchurl/Makefile
|
corepkgs/fetchurl/Makefile
|
||||||
corepkgs/nar/Makefile
|
corepkgs/nar/Makefile
|
||||||
|
corepkgs/buildenv/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/manual/Makefile
|
doc/manual/Makefile
|
||||||
])
|
])
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
SUBDIRS = fetchurl nar
|
SUBDIRS = fetchurl nar buildenv
|
||||||
|
|
9
corepkgs/buildenv/Makefile.am
Normal file
9
corepkgs/buildenv/Makefile.am
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
install-exec-local:
|
||||||
|
$(INSTALL) -d $(datadir)/nix/corepkgs
|
||||||
|
$(INSTALL) -d $(datadir)/nix/corepkgs/buildenv
|
||||||
|
$(INSTALL_DATA) default.nix $(datadir)/nix/corepkgs/buildenv
|
||||||
|
$(INSTALL_PROGRAM) builder.pl $(datadir)/nix/corepkgs/buildenv
|
||||||
|
|
||||||
|
include ../../substitute.mk
|
||||||
|
|
||||||
|
EXTRA_DIST = default.nix builder.pl
|
|
@ -164,7 +164,7 @@ void switchLink(Path link, Path target)
|
||||||
void createUserEnv(EvalState & state, const DrvInfos & drvs)
|
void createUserEnv(EvalState & state, const DrvInfos & drvs)
|
||||||
{
|
{
|
||||||
/* Get the environment builder expression. */
|
/* Get the environment builder expression. */
|
||||||
Expr envBuilder = parseExprFromFile("/home/eelco/nix/corepkgs/buildenv"); /* !!! */
|
Expr envBuilder = parseExprFromFile(nixDataDir + "/nix/corepkgs/buildenv"); /* !!! */
|
||||||
|
|
||||||
/* Construct the whole top level derivation. */
|
/* Construct the whole top level derivation. */
|
||||||
ATermList inputs = ATempty;
|
ATermList inputs = ATempty;
|
||||||
|
|
Loading…
Reference in a new issue