about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-19T22·21+0100
committerVincent Ambo <tazjin@google.com>2020-04-19T22·21+0100
commit26a52edfdb3a4bdec2f4216208f5a93ea2dbd35c (patch)
tree9a57c0170bce6019dbf16f44507bfc94ae7d8d19
parent55eba03d6e9f96d05fcc51806330293f5869481b (diff)
feat(third_party): Add derivation for honk r/635
-rw-r--r--third_party/default.nix1
-rw-r--r--third_party/honk/default.nix21
2 files changed, 22 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix
index 4a9363c49f..e510373e22 100644
--- a/third_party/default.nix
+++ b/third_party/default.nix
@@ -92,6 +92,7 @@ let
       rustPlatform
       rustc
       sbcl
+      sqlite
       stdenv
       stern
       symlinkJoin
diff --git a/third_party/honk/default.nix b/third_party/honk/default.nix
new file mode 100644
index 0000000000..8248bd6a8e
--- /dev/null
+++ b/third_party/honk/default.nix
@@ -0,0 +1,21 @@
+{ pkgs, ... }:
+
+pkgs.stdenv.mkDerivation rec {
+  name = "honk-${version}";
+  version = "0.9.0";
+  nativeBuildInputs = [ pkgs.go ];
+  buildInputs = [ pkgs.sqlite ];
+
+  src = builtins.fetchTarball {
+    url = "https://humungus.tedunangst.com/r/honk/d/honk-${version}.tgz";
+    sha256 = "0fj1ybhsra626q5vy1sy9aigxx5rjda5mgq74m7kzw7an4z2a67m";
+  };
+
+  installPhase = ''
+    install -D honk $out/bin/honk
+    install -D docs/honk.1 $out/share/man/man1/honk.1
+    install -D docs/honk.3 $out/share/man/man3/honk.3
+    install -D docs/honk.5 $out/share/man/man5/honk.5
+    install -D docs/honk.8 $out/share/man/man8/honk.8
+  '';
+}