nix: always depend on libsodium

Restricting this to Linux and Darwin broke other operating systems,
like NetBSD.
master
Alyssa Ross 2021-06-04 10:37:34 +00:00
parent 3df02b20f7
commit 45eeabf3a1
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0
1 changed files with 1 additions and 2 deletions

View File

@ -50,11 +50,10 @@ common =
];
buildInputs =
[ curl openssl sqlite xz bzip2 nlohmann_json
[ curl libsodium openssl sqlite xz bzip2 nlohmann_json
brotli boost editline
]
++ lib.optionals stdenv.isDarwin [ Security ]
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
++ lib.optionals is24 [ libarchive gtest lowdown ]
++ lib.optional (is24 && stdenv.isx86_64) libcpuid
++ lib.optional withLibseccomp libseccomp