diff options
author | figsoda <figsoda@pm.me> | 2022-10-09 17:02:21 -0400 |
---|---|---|
committer | Matthieu Coudron <teto@users.noreply.github.com> | 2022-10-09 23:44:08 +0200 |
commit | 67620e2fce855fa6ec812caf0f738b4fcd869952 (patch) | |
tree | a68a58dc772c8403d2d218dc4790909693011049 | |
parent | 34c5293a71ffdb2fe054eb5288adc1882c1eb0b1 (diff) |
star-history: init at 1.0.4
-rw-r--r-- | pkgs/tools/misc/star-history/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/star-history/default.nix b/pkgs/tools/misc/star-history/default.nix new file mode 100644 index 0000000000000..0bd10a5750500 --- /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 383eba56b826b..bfc92e63f62cf 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 { |