jnv: fix darwin build

This commit is contained in:
uncenter 2024-08-15 13:04:35 +02:00
parent 199d21a833
commit 59fe871ed7
No known key found for this signature in database

View File

@ -1,6 +1,8 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "jnv";
@ -15,6 +17,8 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-xF0sxoSo7z7lxrF3wFAmU7edREoWKBFBnZ6Xq22c8q0=";
buildInputs = lib.optional stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreGraphics AppKit ]);
meta = with lib; {
description = "Interactive JSON filter using jq";
mainProgram = "jnv";