about summary refs log tree commit diff
path: root/third_party/lisp/trivial-mimes.nix
blob: c4b21045c5f4575740f3c49836c8a6597bee7c39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 ];
}