about summary refs log tree commit diff
path: root/tools/govanity
diff options
context:
space:
mode:
Diffstat (limited to 'tools/govanity')
-rw-r--r--tools/govanity/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/govanity/default.nix b/tools/govanity/default.nix
new file mode 100644
index 0000000..10652ff
--- /dev/null
+++ b/tools/govanity/default.nix
@@ -0,0 +1,24 @@
+{ pkgs, ... }:
+
+pkgs.buildGoModule rec {
+  name = "govanity";
+  src = ./.;
+  vendorSha256 = "sha256-iu2QE+vvenFWpOOz1NHVQHudiWkvkKqZvD4ZX4Xa1sY=";
+  nativeBuildInputs = with pkgs; [ go ];
+
+  deploy = pkgs.pkgs.writeShellScriptBin "run-deploy" ''
+    set -euxo pipefail
+    export PATH=${
+      pkgs.lib.makeBinPath [ pkgs.go pkgs.git pkgs.jq pkgs.flyctl ]
+    }:$PATH
+    bash ./scripts/deploy.sh
+  '';
+
+  meta = with pkgs.lib; {
+    description = "simple server for golang packages";
+    homepage = "https://golang.fcuny.net";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = [ ];
+  };
+}