-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily restore nixVersions 2.4-2.9
This commit temporarily restores nixVersions 2.4-2.9 so the following commit can split them into separate files before re-performing the deletion (against the kept-in-separate-files version).
- Loading branch information
Adam Joseph
committed
Mar 28, 2023
1 parent
5e2ca1e
commit fc8b055
Showing
2 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
pkgs/tools/package-management/nix/patches/install-nlohmann_json-headers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 3884f7a69a57d8ecfcbcaae476ec2ff53ffbd549 Mon Sep 17 00:00:00 2001 | ||
From: Robert Hensing <robert@roberthensing.nl> | ||
Date: Thu, 11 Nov 2021 11:03:21 +0100 | ||
Subject: [PATCH] Install nlohmann_json headers | ||
|
||
These headers are included by the libexpr, libfetchers, libstore | ||
and libutil headers. | ||
Considering that these are vendored sources, Nix should expose them, | ||
as it is not a good idea for reverse dependencies to rely on a | ||
potentially different source that can go out of sync. | ||
--- | ||
Makefile | 1 + | ||
src/nlohmann/local.mk | 2 ++ | ||
2 files changed, 3 insertions(+) | ||
create mode 100644 src/nlohmann/local.mk | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 5040d288485..e6ce50cbdb7 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -10,6 +10,7 @@ makefiles = \ | ||
src/libexpr/local.mk \ | ||
src/libcmd/local.mk \ | ||
src/nix/local.mk \ | ||
+ src/nlohmann/local.mk \ | ||
src/resolve-system-dependencies/local.mk \ | ||
scripts/local.mk \ | ||
misc/bash/local.mk \ | ||
diff --git a/src/nlohmann/local.mk b/src/nlohmann/local.mk | ||
new file mode 100644 | ||
index 00000000000..63c427e000e | ||
--- /dev/null | ||
+++ b/src/nlohmann/local.mk | ||
@@ -0,0 +1,2 @@ | ||
+$(foreach i, $(wildcard src/nlohmann/*.hpp), \ | ||
+ $(eval $(call install-file-in, $(i), $(includedir)/nlohmann, 0644))) |