about summary refs log tree commit diff stats
path: root/pkgs/vanity-imports
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 17:22:13 +0200
committerAlan Pearce2024-06-29 17:22:13 +0200
commit1dee212b8732d6360b7d3823ca923ab6946e428d (patch)
tree1221e2397ad612dd42f299ba8f4de13963cab7a3 /pkgs/vanity-imports
parent1f22eb1d157275d40400c83b57fac4ad65ecb1a2 (diff)
downloadnix-packages-1dee212b8732d6360b7d3823ca923ab6946e428d.tar.lz
nix-packages-1dee212b8732d6360b7d3823ca923ab6946e428d.tar.zst
nix-packages-1dee212b8732d6360b7d3823ca923ab6946e428d.zip
vanity-imports: init at 0.0.12
Diffstat (limited to 'pkgs/vanity-imports')
-rw-r--r--pkgs/vanity-imports/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/vanity-imports/default.nix b/pkgs/vanity-imports/default.nix
new file mode 100644
index 0000000..4c20919
--- /dev/null
+++ b/pkgs/vanity-imports/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "vanity-imports";
+  version = "0.0.12";
+
+  src = fetchFromGitHub {
+    owner = "mlcdf";
+    repo = "vanity-imports";
+    rev = "v${version}";
+    hash = "sha256-4JoJL079hBkwWVvOTRbCM1WZhM7hPlKQ+HEAUr7fWP8=";
+  };
+
+  vendorHash = "sha256-w0LaXevbGm1xpHvKxxyubHCOVRN712UzLyOd+hVikKg=";
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    description = "Use a custom domain in your Go import path";
+    homepage = "https://github.com/mlcdf/vanity-imports";
+    license = licenses.mit;
+    maintainers = with maintainers; [ alanpearce ];
+    mainProgram = "vanity-imports";
+  };
+}