From 235a151786cc10fbf2c6c6d43656b876b5124d03 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 25 Nov 2024 02:27:54 +0000 Subject: [PATCH 1/2] jsonwatch: 0.6.0 -> 0.7.0 --- pkgs/tools/misc/jsonwatch/default.nix | 21 +++++++-------------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/pkgs/tools/misc/jsonwatch/default.nix b/pkgs/tools/misc/jsonwatch/default.nix index c40e91c87c32..44fc53b878dc 100644 --- a/pkgs/tools/misc/jsonwatch/default.nix +++ b/pkgs/tools/misc/jsonwatch/default.nix @@ -1,26 +1,21 @@ -{ lib -, stdenv -, fetchFromGitHub -, rustPlatform -, Security +{ + lib, + fetchFromGitHub, + rustPlatform, }: rustPlatform.buildRustPackage rec { pname = "jsonwatch"; - version = "0.6.0"; + version = "0.7.0"; src = fetchFromGitHub { owner = "dbohdan"; repo = pname; rev = "v${version}"; - sha256 = "sha256-TGW04P8t0mAXza7I7qp6QRXA/MDE3m1dlRC7bMf2dSk="; + sha256 = "sha256-WzQ793dLb8OujNpEq7UXIgJM+lz0WZEVlbKmwM58klU="; }; - cargoHash = "sha256-Gjb7v3kz11iOml3Ykxhy43KNxzaprgMbb5DpPNChLTc="; - - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - Security - ]; + cargoHash = "sha256-76Vvs3OaxYDZE39d9h3T8HhYQfHhY5D17PgQxcPrMyc="; meta = with lib; { description = "Like watch -d but for JSON"; @@ -34,8 +29,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/dbohdan/jsonwatch"; license = licenses.mit; maintainers = with maintainers; [ fab ]; - # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; mainProgram = "jsonwatch"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 38982497a655..60fbf9d5ef08 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3967,9 +3967,7 @@ with pkgs; json-schema-for-humans = with python3Packages; toPythonApplication json-schema-for-humans; - jsonwatch = callPackage ../tools/misc/jsonwatch { - inherit (darwin.apple_sdk.frameworks) Security; - }; + jsonwatch = callPackage ../tools/misc/jsonwatch { }; jupyter = callPackage ../applications/editors/jupyter { }; From ce9d0969213a0cd6cd6339d0e5a1e76416eb5c45 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Nov 2024 12:35:09 +0100 Subject: [PATCH 2/2] jsonwatch: refactor --- pkgs/tools/misc/jsonwatch/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/jsonwatch/default.nix b/pkgs/tools/misc/jsonwatch/default.nix index 44fc53b878dc..fe028a1c8b7b 100644 --- a/pkgs/tools/misc/jsonwatch/default.nix +++ b/pkgs/tools/misc/jsonwatch/default.nix @@ -10,9 +10,9 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "dbohdan"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-WzQ793dLb8OujNpEq7UXIgJM+lz0WZEVlbKmwM58klU="; + repo = "jsonwatch"; + rev = "refs/tags/v${version}"; + hash = "sha256-WzQ793dLb8OujNpEq7UXIgJM+lz0WZEVlbKmwM58klU="; }; cargoHash = "sha256-76Vvs3OaxYDZE39d9h3T8HhYQfHhY5D17PgQxcPrMyc=";