From 16f8a4b3e70f74941b8bc9bff707d7aa3c3dead2 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Mon, 3 Oct 2022 11:35:48 -0700 Subject: [PATCH] uhdm: add patch to fix darwin build --- pkgs/applications/science/logic/uhdm/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/science/logic/uhdm/default.nix b/pkgs/applications/science/logic/uhdm/default.nix index 30f7c2057933..47b9bb0d9423 100644 --- a/pkgs/applications/science/logic/uhdm/default.nix +++ b/pkgs/applications/science/logic/uhdm/default.nix @@ -33,6 +33,12 @@ stdenv.mkDerivation rec { rm -rf $out/lib/uhdm ''; + prePatch = '' + substituteInPlace CMakeLists.txt --replace \ + 'capnp compile' \ + 'capnp compile --src-prefix=''${GENDIR}/..' + ''; + meta = { description = "Universal Hardware Data Model"; homepage = "https://github.com/chipsalliance/UHDM";