about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/misc/starcharts/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/misc/starcharts/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/misc/starcharts/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/misc/starcharts/default.nix b/nixpkgs/pkgs/servers/misc/starcharts/default.nix
new file mode 100644
index 000000000000..05245213b5b5
--- /dev/null
+++ b/nixpkgs/pkgs/servers/misc/starcharts/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "starcharts";
+  version = "1.9.1";
+
+  src = fetchFromGitHub {
+    owner = "caarlos0";
+    repo = "starcharts";
+    rev = "v${version}";
+    hash = "sha256-RLGKf5+HqJlZUhA5C3cwDumIhlbXcOr5iitI+7GZPBc=";
+  };
+
+  vendorHash = "sha256-BlVjGG6dhh7VO9driT0rnpbW6lORojiV+YhrV1Zlj4M=";
+
+  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 ];
+  };
+}