mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
Add shell.nix
This commit is contained in:
parent
d1da6967b8
commit
09191caea8
3 changed files with 35 additions and 20 deletions
33
shell.nix
Normal file
33
shell.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "nix";
|
||||
|
||||
buildInputs =
|
||||
[ curl bison flex perl libxml2 libxslt bzip2 xz
|
||||
pkgconfig sqlite libsodium boehmgc
|
||||
docbook5 docbook5_xsl
|
||||
autoconf-archive
|
||||
(aws-sdk-cpp.override {
|
||||
apis = ["s3"];
|
||||
customMemoryManagement = false;
|
||||
})
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
configureFlags =
|
||||
[ "--disable-init-state"
|
||||
"--enable-gc"
|
||||
"--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
||||
"--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installFlags = "sysconfdir=$(out)/etc";
|
||||
|
||||
shellHook =
|
||||
''
|
||||
configureFlags+=" --prefix=$(pwd)/inst"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue