nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From ab8bd63b32b963ddc7346a2dabfd39fba8bfba72 Mon Sep 17 00:00:00 2001
2From: Paul Meyer <49727155+katexochen@users.noreply.github.com>
3Date: Sun, 13 Aug 2023 14:13:21 +0200
4Subject: [PATCH] make config path injectable during build
5
6This way a config path can be added to the list during build by
7defining the makro.
8
9Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
10---
11 dumpasn1.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/dumpasn1.c b/dumpasn1.c
15index e7bf268..94f1582 100644
16--- a/dumpasn1.c
17+++ b/dumpasn1.c
18@@ -451,6 +451,10 @@ static const char *configPaths[] = {
19 /* General environment-based paths */
20 "$DUMPASN1_PATH/",
21
22+ #ifdef DUMPASN1_CONFIG_PATH
23+ DUMPASN1_CONFIG_PATH,
24+ #endif /* DUMPASN1_CONFIG_PATH */
25+
26 NULL
27 };
28 #endif /* OS-specific search paths */