about summary refs log tree commit diff
path: root/pkgs/tools/text/runiq
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2024-01-08 02:39:52 -0500
committerfigsoda <figsoda@pm.me>2024-01-08 02:39:52 -0500
commit946be2f92788719f26cabacb976335b65a939df2 (patch)
tree17501ed8d1401c70d3e67d613d33dc50fc2c0740 /pkgs/tools/text/runiq
parentcedb3e1a4fe25e5823121f6596f4a27e54fca542 (diff)
runiq: fix build on darwin
Diffstat (limited to 'pkgs/tools/text/runiq')
-rw-r--r--pkgs/tools/text/runiq/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/runiq/default.nix b/pkgs/tools/text/runiq/default.nix
index 4d2f34685f989..42b9e2aef395d 100644
--- a/pkgs/tools/text/runiq/default.nix
+++ b/pkgs/tools/text/runiq/default.nix
@@ -1,4 +1,4 @@
-{ fetchCrate, lib, rustPlatform }:
+{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
 
 rustPlatform.buildRustPackage rec {
   pname = "runiq";
@@ -11,6 +11,10 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-WSMV0GNKNckN9uSPN647iDloGkNtaKcrZbeyglUappc=";
 
+  buildInputs = lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
   meta = with lib; {
     description = "An efficient way to filter duplicate lines from input, à la uniq";
     homepage = "https://github.com/whitfin/runiq";