about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2025-01-12T16·10+0300
committerclbot <clbot@tvl.fyi>2025-01-14T11·34+0000
commit83b22e177b48b4bd9789249bc2772f2ff33153d4 (patch)
treeba8406bf76d5d6b06b7b061267433dd6cc99e8c3 /third_party
parent5cdede844fc241b6130b37a400619b3cc98d999c (diff)
fix(3p/overlays): revert harmonia back to 1.0.2 r/9087
Change-Id: I2c895f91da271b61e10ea216957832a129febd20
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12985
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/overlays/tvl.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix
index 9e8b80ad627b..966669f3e73b 100644
--- a/third_party/overlays/tvl.nix
+++ b/third_party/overlays/tvl.nix
@@ -168,4 +168,33 @@ depot.nix.readTree.drvTargets {
   #
   # temporarily restore the old name to make things work again.
   utillinux = self.util-linux;
+
+  # harmonia >2.0 broke compatibility with Nix 2.3; revert back for now
+  harmonia = self.rustPlatform.buildRustPackage rec {
+    pname = "harmonia";
+    version = "1.0.2";
+    doCheck = false;
+    cargoHash = "sha256-gW/OljEngDQddIovtgwghu7uHLFVZHvWIijPgbOOkDc=";
+    meta.mainProgram = "harmonia";
+
+    src = self.fetchFromGitHub {
+      owner = "nix-community";
+      repo = "harmonia";
+      rev = "refs/tags/harmonia-v${version}";
+      hash = "sha256-72nDVSvUfZsLa2HbyricOpA0Eb8gxs/VST25b6DNBpM=";
+    };
+
+    nativeBuildInputs = with self; [
+      pkg-config
+      nixVersions.nix_2_24
+    ];
+
+    buildInputs = with self; [
+      boost
+      libsodium
+      openssl
+      nlohmann_json
+      nixVersions.nix_2_24
+    ];
+  };
 }