aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquapka2024-08-08 16:57:53 +0200
committerquapka2024-08-08 16:57:53 +0200
commit1c78a5cdc2e11bcbba2dfd841fbb1967ecb1f617 (patch)
treec1a7c9bdee8ce496b9850c81591801e3133a7205 /flake.nix
parentcad198bccc95267ca3d4fb6767d795d9c7e477ff (diff)
downloadECTester-1c78a5cdc2e11bcbba2dfd841fbb1967ecb1f617.tar.gz
ECTester-1c78a5cdc2e11bcbba2dfd841fbb1967ecb1f617.tar.zst
ECTester-1c78a5cdc2e11bcbba2dfd841fbb1967ecb1f617.zip
Patch only LibreSSL 3.8.2
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 6a8150e..941220e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -285,13 +285,17 @@
url = "mirror://openbsd/LibreSSL/${prev.pname}-${version}.tar.gz";
inherit hash;
};
- patches = [
- (pkgs.fetchpatch {
- url = "https://github.com/libressl/portable/commit/86e4965d7f20c3a6afc41d95590c9f6abb4fe788.patch";
- includes = [ "tests/tlstest.sh" ];
- hash = "sha256-XmmKTvP6+QaWxyGFCX6/gDfME9GqBWSx4X8RH8QbDXA=";
- })
- ];
+ patches =
+ if version == "3.8.2" then
+ [
+ (pkgs.fetchpatch {
+ url = "https://github.com/libressl/portable/commit/86e4965d7f20c3a6afc41d95590c9f6abb4fe788.patch";
+ includes = [ "tests/tlstest.sh" ];
+ hash = "sha256-XmmKTvP6+QaWxyGFCX6/gDfME9GqBWSx4X8RH8QbDXA=";
+ })
+ ]
+ else
+ [ ];
# NOTE: Due to name conflicts between OpenSSL and LibreSSL we need to resolve this manually.
# This is not needed for building the individual shims through Nix, as libresslShim build env does not