about summary refs log tree commit diff
path: root/shell.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-26T15·04+0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-26T15·04+0200
commit98a2adb1359ec35ac8da7a52754d2290531f8cef (patch)
treeac8d7d29f92f805126faf453ef3eb86c41f896af /shell.nix
parent6734c18c99f8fa33a50a3045a8dd915bbf084255 (diff)
Simplify building nix-perl in nix-shell
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/shell.nix b/shell.nix
index 3c57826d1a1e..37a936fd2efb 100644
--- a/shell.nix
+++ b/shell.nix
@@ -17,6 +17,10 @@ with import <nixpkgs> {};
       })
       autoreconfHook
       readline
+
+      # For nix-perl
+      perl
+      perlPackages.DBDSQLite
     ];
 
   configureFlags =
@@ -30,6 +34,9 @@ with import <nixpkgs> {};
 
   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
     '';
 }