runiq: fix build on darwin

This commit is contained in:
figsoda 2024-01-08 02:39:52 -05:00
parent cedb3e1a4f
commit 946be2f927

View File

@ -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";