2017-05-15 15:30:33 +00:00
|
|
|
{ pkgs }:
|
|
|
|
|
2018-03-14 18:11:13 +00:00
|
|
|
with pkgs;
|
|
|
|
|
2017-05-15 15:30:33 +00:00
|
|
|
rec {
|
2018-02-05 17:28:27 +00:00
|
|
|
# Use "busybox-sandbox-shell" if present,
|
|
|
|
# if not (legacy) fallback and hope it's sufficient.
|
2018-03-14 18:11:13 +00:00
|
|
|
sh = pkgs.busybox-sandbox-shell or (busybox.override {
|
2017-05-15 15:30:33 +00:00
|
|
|
useMusl = true;
|
|
|
|
enableStatic = true;
|
|
|
|
enableMinimal = true;
|
|
|
|
extraConfig = ''
|
2018-02-05 16:25:26 +00:00
|
|
|
CONFIG_FEATURE_FANCY_ECHO y
|
|
|
|
CONFIG_FEATURE_SH_MATH y
|
|
|
|
CONFIG_FEATURE_SH_MATH_64 y
|
|
|
|
|
2017-05-15 15:30:33 +00:00
|
|
|
CONFIG_ASH y
|
2018-02-05 16:25:26 +00:00
|
|
|
CONFIG_ASH_OPTIMIZE_FOR_SIZE y
|
|
|
|
|
|
|
|
CONFIG_ASH_ALIAS y
|
|
|
|
CONFIG_ASH_BASH_COMPAT y
|
|
|
|
CONFIG_ASH_CMDCMD y
|
2017-10-07 12:43:55 +00:00
|
|
|
CONFIG_ASH_ECHO y
|
2018-02-05 16:25:26 +00:00
|
|
|
CONFIG_ASH_GETOPTS y
|
|
|
|
CONFIG_ASH_INTERNAL_GLOB y
|
|
|
|
CONFIG_ASH_JOB_CONTROL y
|
|
|
|
CONFIG_ASH_PRINTF y
|
2017-10-07 12:43:55 +00:00
|
|
|
CONFIG_ASH_TEST y
|
2017-05-15 15:30:33 +00:00
|
|
|
'';
|
2018-02-05 17:28:27 +00:00
|
|
|
});
|
2017-05-15 15:30:33 +00:00
|
|
|
|
|
|
|
configureFlags =
|
2019-10-30 13:43:09 +00:00
|
|
|
lib.optionals stdenv.isLinux [
|
2017-05-15 15:30:33 +00:00
|
|
|
"--with-sandbox-shell=${sh}/bin/busybox"
|
|
|
|
];
|
2018-03-14 18:11:13 +00:00
|
|
|
|
2020-03-13 13:05:49 +00:00
|
|
|
buildDeps =
|
2018-03-14 18:11:13 +00:00
|
|
|
[ bison
|
|
|
|
flex
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
docbook5
|
2019-05-30 15:08:33 +00:00
|
|
|
docbook_xsl_ns
|
2018-03-14 18:11:13 +00:00
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
|
2020-03-13 13:05:49 +00:00
|
|
|
curl
|
2019-12-13 08:29:33 +00:00
|
|
|
bzip2 xz brotli zlib editline
|
2020-02-15 20:48:28 +00:00
|
|
|
openssl pkgconfig sqlite
|
2019-12-07 15:35:14 +00:00
|
|
|
libarchive
|
2018-03-14 18:11:13 +00:00
|
|
|
boost
|
2019-10-22 18:12:23 +00:00
|
|
|
nlohmann_json
|
2019-03-27 13:12:20 +00:00
|
|
|
rustc cargo
|
2018-03-14 18:11:13 +00:00
|
|
|
|
|
|
|
# Tests
|
|
|
|
git
|
|
|
|
mercurial
|
|
|
|
]
|
2018-06-18 20:50:37 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [libseccomp utillinuxMinimal]
|
2018-03-14 18:11:13 +00:00
|
|
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
|
|
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin)
|
2018-08-06 15:20:23 +00:00
|
|
|
((aws-sdk-cpp.override {
|
2018-05-07 13:23:51 +00:00
|
|
|
apis = ["s3" "transfer"];
|
2018-03-14 18:11:13 +00:00
|
|
|
customMemoryManagement = false;
|
2018-08-06 15:20:23 +00:00
|
|
|
}).overrideDerivation (args: {
|
2018-11-01 14:17:35 +00:00
|
|
|
/*
|
2018-08-06 15:20:23 +00:00
|
|
|
patches = args.patches or [] ++ [ (fetchpatch {
|
|
|
|
url = https://github.com/edolstra/aws-sdk-cpp/commit/3e07e1f1aae41b4c8b340735ff9e8c735f0c063f.patch;
|
|
|
|
sha256 = "1pij0v449p166f9l29x7ppzk8j7g9k9mp15ilh5qxp29c7fnvxy2";
|
|
|
|
}) ];
|
2018-11-01 14:17:35 +00:00
|
|
|
*/
|
2018-08-06 15:20:23 +00:00
|
|
|
}));
|
2018-03-14 18:11:13 +00:00
|
|
|
|
2020-02-15 20:48:28 +00:00
|
|
|
propagatedDeps =
|
|
|
|
[ (boehmgc.override { enableLargeConfig = true; })
|
|
|
|
];
|
|
|
|
|
2018-03-14 18:11:13 +00:00
|
|
|
perlDeps =
|
|
|
|
[ perl
|
|
|
|
perlPackages.DBDSQLite
|
|
|
|
];
|
2017-05-15 15:30:33 +00:00
|
|
|
}
|