Unverified Commit 1f1fbf21 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

Merge pull request #334827 from uncenter/pr-a93b4f6c

jnv: fix darwin build
parents d858bd23 c497bbd6
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  stdenv,
  darwin,
}:
rustPlatform.buildRustPackage rec {
  pname = "jnv";
@@ -15,11 +18,22 @@ 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";
    homepage = "https://github.com/ynqa/jnv";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ nealfennimore nshalman ];
    maintainers = with maintainers; [
      nealfennimore
      nshalman
    ];
  };
}