about summary refs log tree commit diff
path: root/third_party/lisp/unix-opts.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-29T10·05+0000
committerVincent Ambo <tazjin@google.com>2020-01-29T10·12+0000
commit6f728f33a674ce668ded32af9a272ff21b182164 (patch)
treecddcb13d70646fbcfcab8dcee1c16165048d936e /third_party/lisp/unix-opts.nix
parent8e8bbbca04c70a2132db6277e94ebce568e3c371 (diff)
feat(third_party/lisp): Add derivation for unix-opts r/474
Diffstat (limited to 'third_party/lisp/unix-opts.nix')
-rw-r--r--third_party/lisp/unix-opts.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/lisp/unix-opts.nix b/third_party/lisp/unix-opts.nix
new file mode 100644
index 000000000000..138da1c7faf9
--- /dev/null
+++ b/third_party/lisp/unix-opts.nix
@@ -0,0 +1,17 @@
+# unix-opts is a portable command line argument parser
+{ pkgs, ...}:
+
+let
+  src = pkgs.third_party.fetchFromGitHub {
+    owner = "libre-man";
+    repo = "unix-opts";
+    rev = "b805050b074bd860edd18cfc8776fdec666ec36e";
+    sha256 = "0j93dkc9f77wz1zfspm7q1scx6wwbm6jhk8vl2rm6bfd0n8scxla";
+  };
+in pkgs.nix.buildLisp.library {
+  name = "unix-opts";
+
+  srcs = [
+    "${src}/unix-opts.lisp"
+  ];
+}