2020-07-22 22:28:34 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "mrossini-ethz";
|
|
|
|
repo = "physical-quantities";
|
2021-08-13 22:24:50 +02:00
|
|
|
rev = "v0.2.1";
|
|
|
|
sha256 = "0mb2s94s6fhw5vfa89naalw7ld11sdsszlqpz0c65dvpfyfmmdmh";
|
2020-07-22 22:28:34 +02:00
|
|
|
};
|
2021-08-13 22:24:50 +02:00
|
|
|
|
2020-07-22 22:28:34 +02:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
}
|