From 94e821a54d33aee5aef62f328ec3d50dd6867c9e Mon Sep 17 00:00:00 2001 From: quapka Date: Sat, 17 Aug 2024 16:15:34 +0200 Subject: By default build ECTester with default, aka newest fetched, libraries --- flake.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index cc36fb7..42ba837 100644 --- a/flake.nix +++ b/flake.nix @@ -683,6 +683,15 @@ } ); + + defaultVersion = + # Default version is the last one, aka the newest that we fetched + libName: + let + versions = builtins.fromJSON (builtins.readFile ./nix/${libName}_pkg_versions.json); + in + pkgs.lib.lists.last (pkgs.lib.attrsets.attrValues versions); + loadVersions = { libName, function }: let @@ -707,7 +716,18 @@ in { packages = rec { - default = openssl.default; + default = buildECTesterStandalone { + # FIXME tomcrypt is missing! + botan = defaultVersion "botan"; + cryptopp = defaultVersion "cryptopp"; + openssl = defaultVersion "openssl"; + boringssl = defaultVersion "boringssl"; + gcrypt = defaultVersion "gcrypt"; + mbedtls = defaultVersion "mbedtls"; + ippcp = defaultVersion "ippcp"; + nettle = defaultVersion "nettle"; + libressl = defaultVersion "libressl"; + }; tomcrypt = loadVersions { libName = "tomcrypt"; function = buildECTesterStandalone; -- cgit v1.3.1