about summary refs log tree commit diff
path: root/pkgs/tools/misc/star-history
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-10-09 17:02:21 -0400
committerMatthieu Coudron <teto@users.noreply.github.com>2022-10-09 23:44:08 +0200
commit67620e2fce855fa6ec812caf0f738b4fcd869952 (patch)
treea68a58dc772c8403d2d218dc4790909693011049 /pkgs/tools/misc/star-history
parent34c5293a71ffdb2fe054eb5288adc1882c1eb0b1 (diff)
star-history: init at 1.0.4
Diffstat (limited to 'pkgs/tools/misc/star-history')
-rw-r--r--pkgs/tools/misc/star-history/default.nix33
1 files changed, 33 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 ];
+  };
+}