From 98a2adb1359ec35ac8da7a52754d2290531f8cef Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Apr 2017 17:04:45 +0200 Subject: Simplify building nix-perl in nix-shell --- shell.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 3c57826d1a1e..37a936fd2efb 100644 --- a/shell.nix +++ b/shell.nix @@ -17,6 +17,10 @@ with import {}; }) autoreconfHook readline + + # For nix-perl + perl + perlPackages.DBDSQLite ]; configureFlags = @@ -30,6 +34,9 @@ with import {}; shellHook = '' - configureFlags+=" --prefix=$(pwd)/inst" + export prefix=$(pwd)/inst + configureFlags+=" --prefix=prefix" + PKG_CONFIG_PATH=$prefix/lib/pkgconfig:$PKG_CONFIG_PATH + PATH=$prefix/bin:$PATH ''; } -- cgit 1.4.1