diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-22T20·28-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-23T04·28+0000 |
commit | b1c0866037ea63b670055883de88a9fe4e8891e2 (patch) | |
tree | cef4735ba4745239d511cb6885cb538526f17471 /third_party/lisp/trivial-mimes.nix | |
parent | f591c32dfb2a9f0246c8d6501c1efab4c80da52f (diff) |
feat(3p/lisp): Add LASS r/1423
Add LASS, a CSS library Change-Id: I225959b12210895d0e5baf8a41ac09b0351f0aed Reviewed-on: https://cl.tvl.fyi/c/depot/+/1349 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/lisp/trivial-mimes.nix')
-rw-r--r-- | third_party/lisp/trivial-mimes.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/lisp/trivial-mimes.nix b/third_party/lisp/trivial-mimes.nix new file mode 100644 index 000000000000..c4b21045c5f4 --- /dev/null +++ b/third_party/lisp/trivial-mimes.nix @@ -0,0 +1,24 @@ +{ depot, pkgs, ... }: + +let + src = pkgs.fetchFromGitHub { + owner = "Shinmera"; + repo = "trivial-mimes"; + rev = "a741fc2f567a4f86b853fd4677d75e62c03e51d9"; + sha256 = "00kcm17q5plpzdj1qwg83ldhxksilgpcdkf3m9azxcdr968xs9di"; + }; + + mime-types = pkgs.runCommand "mime-types.lisp" {} '' + substitute ${src}/mime-types.lisp $out \ + --replace /etc/mime.types ${src}/mime.types + ''; + +in depot.nix.buildLisp.library { + name = "trivial-mimes"; + + deps = [ + (depot.nix.buildLisp.bundled "uiop") + ]; + + srcs = [ mime-types ]; +} |