diff --git a/pkgs/tools/misc/star-history/default.nix b/pkgs/tools/misc/star-history/default.nix new file mode 100644 index 000000000000..0bd10a575050 --- /dev/null +++ b/pkgs/tools/misc/star-history/default.nix @@ -0,0 +1,33 @@ +{ lib +, rustPlatform +, fetchCrate +, pkg-config +, openssl +, stdenv +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "star-history"; + version = "1.0.4"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-sVcYQneWEZXcsbzMJ2ZfHS0C529J6s1sDxrcIojEC4U="; + }; + + cargoSha256 = "sha256-d0PesmJTZFVoVwBLMZzOsF76hcUbRaEoymmfw3Qh9mc="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ + Security + ]; + + meta = with lib; { + description = "Command line program to generate a graph showing number of GitHub stars of a user, org or repo over time"; + homepage = "https://github.com/dtolnay/star-history"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 383eba56b826..bfc92e63f62c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26423,6 +26423,10 @@ with pkgs; stdmanpages = callPackage ../data/documentation/std-man-pages { }; + star-history = callPackage ../tools/misc/star-history { + inherit (darwin.apple_sdk.frameworks) Security; + }; + starfetch = callPackage ../tools/misc/starfetch { }; starship = callPackage ../tools/misc/starship {