about summary refs log tree commit diff
path: root/third_party/lisp/physical-quantities.nix
blob: b8079e8ebaafe3886ea572cd433309c17a0b82bc (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
25
26
27
28
29
30
31
{ depot, pkgs, ... }:

let
  src = pkgs.fetchFromGitHub {
    owner = "mrossini-ethz";
    repo = "physical-quantities";
    rev = "v0.2.1";
    sha256 = "0mb2s94s6fhw5vfa89naalw7ld11sdsszlqpz0c65dvpfyfmmdmh";
  };

in depot.nix.buildLisp.library {
  name = "physical-quantities";

  deps = with depot.third_party.lisp; [
    parseq
  ];

  srcs = map (f: src + ("/" + f)) [
    "package.lisp"
    "utils.lisp"
    "conditions.lisp"
    "unit-factor.lisp"
    "unit-database.lisp"
    "units.lisp"
    "quantity.lisp"
    "numeric.lisp"
    "parse-rules.lisp"
    "read-macro.lisp"
    "si-units.lisp"
  ];
}