mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
reaction: fix build on macos
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
24
pkgs/by-name/re/reaction/add-support-for-macos.patch
Normal file
24
pkgs/by-name/re/reaction/add-support-for-macos.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From dc51d7d432eeb408551ae84c6b08d172efbf4649 Mon Sep 17 00:00:00 2001
|
||||
From: ppom <reaction@ppom.me>
|
||||
Date: Tue, 17 Feb 2026 12:00:00 +0100
|
||||
Subject: [PATCH] Add support for macOS
|
||||
|
||||
---
|
||||
src/concepts/plugin.rs | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/concepts/plugin.rs b/src/concepts/plugin.rs
|
||||
index c5bc330..8c3c142 100644
|
||||
--- a/src/concepts/plugin.rs
|
||||
+++ b/src/concepts/plugin.rs
|
||||
@@ -1,5 +1,7 @@
|
||||
use std::{collections::BTreeMap, io::Error, path, process::Stdio};
|
||||
|
||||
+#[cfg(target_os = "macos")]
|
||||
+use std::os::darwin::fs::MetadataExt;
|
||||
#[cfg(target_os = "freebsd")]
|
||||
use std::os::freebsd::fs::MetadataExt;
|
||||
#[cfg(target_os = "illumos")]
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -22,6 +22,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
hash = "sha256-OvNJsR9W5MlicqUpr1aOLJ7pI7H7guq1vAlC/hh1Q2o=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# remove patch in next tagged version
|
||||
./add-support-for-macos.patch
|
||||
];
|
||||
|
||||
cargoHash = "sha256-BOFZlVBKf6fjW1L1J8u7Vf+fzNJHlEtQI6YafDjlZ4U=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
Reference in New Issue
Block a user