about summary refs log tree commit diff
path: root/third_party/lisp/md5.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-22T00·23+0000
committerVincent Ambo <tazjin@google.com>2020-01-22T00·23+0000
commitfe3ea06cbc32c9b727549a6505e69234f3072f6f (patch)
tree0fca475404528540bcf1bef98f9360ba67c828a2 /third_party/lisp/md5.nix
parent6de462f674affc4407b89ffe356c2159efad353c (diff)
feat(third_party/lisp): Add derivations for hunchentoot & deps r/437
Diffstat (limited to 'third_party/lisp/md5.nix')
-rw-r--r--third_party/lisp/md5.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/lisp/md5.nix b/third_party/lisp/md5.nix
new file mode 100644
index 000000000000..3787e23175e8
--- /dev/null
+++ b/third_party/lisp/md5.nix
@@ -0,0 +1,18 @@
+# MD5 hash implementation
+{ pkgs, ... }:
+
+let src = pkgs.third_party.fetchFromGitHub {
+  owner = "pmai";
+  repo = "md5";
+  rev = "b1412600f60d526ee34a7ba1596ec483da7894ab";
+  sha256 = "0lzip6b6xg7gd70xl1xmqp24fvxqj6ywjnz9lmx7988zpj20nhl2";
+};
+in pkgs.nix.buildLisp.library {
+  name = "md5";
+
+  deps = with pkgs.third_party.lisp; [
+    sb-rotate-byte
+  ];
+
+  srcs = [ (src + "/md5.lisp") ];
+}