Previously two cryptography libraries were linked into Lix: OpenSSL used for hashing and (in usual configurations) indirectly via curl for TLS, and Sodium used only for handling the Ed25519 path info signatures. The latter is functionally redundant since OpenSSL supports the same use case as well. Reimplement the Ed25519 handling using OpenSSL and drop Sodium. Fixes: https://git.lix.systems/lix-project/lix/issues/969 Change-Id: I6a6a696456b9d3ad7fdc2bf9b0759836a6247a38
61 lines
947 B
Nix
61 lines
947 B
Nix
{
|
|
lib,
|
|
fileset,
|
|
stdenv,
|
|
perl,
|
|
perlPackages,
|
|
pkg-config,
|
|
nix,
|
|
curl,
|
|
bzip2,
|
|
xz,
|
|
boost,
|
|
darwin,
|
|
meson,
|
|
ninja,
|
|
capnproto,
|
|
}:
|
|
|
|
perl.pkgs.toPerlModule (
|
|
stdenv.mkDerivation {
|
|
name = "nix-perl-${nix.version}";
|
|
|
|
src = fileset.toSource {
|
|
root = ../.;
|
|
fileset = fileset.unions ([
|
|
../version.json
|
|
./lib
|
|
./meson.build
|
|
]);
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
nix
|
|
curl
|
|
bzip2
|
|
xz
|
|
perl
|
|
boost
|
|
perlPackages.DBI
|
|
perlPackages.DBDSQLite
|
|
# for kj-async
|
|
capnproto
|
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
|
|
|
# Nixpkgs' Meson hook likes to set this to "plain".
|
|
mesonBuildType = "debugoptimized";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
|
|
passthru = { inherit perl; };
|
|
}
|
|
)
|