summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-05-22 20:25:34 -0600
committerGitHub <noreply@github.com>2023-05-22 20:25:34 -0600
commit4d0ef51e2821aad31f374f408da241379d8aa22b (patch)
tree25c5cf56827a3e03ea61b1d3bc55c948723ebb90 /pkgs
parentb98b6e5636b715d0f00715f4f82016fbebbda4a0 (diff)
parent00b70818302f64a039ddabeeb987e21fec5ab1d7 (diff)
downloadnixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar.gz
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar.bz2
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar.lz
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar.xz
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.tar.zst
nixpkgs-4d0ef51e2821aad31f374f408da241379d8aa22b.zip
Merge pull request #233337 from figsoda/starcharts
starcharts: init at 1.7.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/misc/starcharts/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/servers/misc/starcharts/default.nix b/pkgs/servers/misc/starcharts/default.nix
new file mode 100644
index 00000000000..213b3d9aaec
--- /dev/null
+++ b/pkgs/servers/misc/starcharts/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "starcharts";
+  version = "1.7.0";
+
+  src = fetchFromGitHub {
+    owner = "caarlos0";
+    repo = "starcharts";
+    rev = "v${version}";
+    hash = "sha256-XlR3AZgxp3ZljDR4H/BANeCqfR/G0a1KXo789GqNN8Y=";
+  };
+
+  vendorHash = "sha256-ki+LaJ3dgN/cPA5zpbV/LiWIjuTKqojjpdRZ8VCZ0Kk=";
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X=main.version=${version}"
+  ];
+
+  __darwinAllowLocalNetworking = true;
+
+  meta = with lib; {
+    description = "Plot your repository stars over time";
+    homepage = "https://github.com/caarlos0/starcharts";
+    changelog = "https://github.com/caarlos0/starcharts/releases/tag/${src.rev}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8f4dc5a29a7..2f0a3d0038f 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12694,6 +12694,8 @@ with pkgs;
 
   stabber = callPackage ../misc/stabber { };
 
+  starcharts = callPackage ../servers/misc/starcharts { };
+
   staticjinja = with python3.pkgs; toPythonApplication staticjinja;
 
   stevenblack-blocklist  = callPackage ../tools/networking/stevenblack-blocklist { };