1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

Simplify building nix-perl in nix-shell

This commit is contained in:
Eelco Dolstra 2017-04-26 17:04:45 +02:00
parent 6734c18c99
commit 98a2adb135
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 15 additions and 6 deletions

View file

@ -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
'';
}