Merge pull request #44483 from imuli/idris-quantities

idrisPackages: add quantities library
This commit is contained in:
xeji 2018-08-05 23:03:59 +02:00 committed by GitHub
commit b49b03a8c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View File

@ -1689,6 +1689,11 @@
github = "imalsogreg";
name = "Greg Hale";
};
imuli = {
email = "i@imu.li";
github = "imuli";
name = "Imuli";
};
infinisil = {
email = "infinisil@icloud.com";
github = "infinisil";

View File

@ -153,6 +153,8 @@
protobuf = callPackage ./protobuf.nix {};
quantities = callPackage ./quantities.nix {};
rationals = callPackage ./rationals.nix {};
recursion_schemes = callPackage ./recursion_schemes.nix {};

View File

@ -0,0 +1,22 @@
{ build-idris-package
, fetchFromGitHub
, lib
}:
build-idris-package {
name = "quantities";
version = "2018-04-17";
src = fetchFromGitHub {
owner = "timjb";
repo = "quantities";
rev = "76bb872bd89122043083351993140ae26eb91ead";
sha256 = "0fv12kdi9089b4kkr6inhqvs2s8x62nv5vqj76wzk8hy0lrzylzj";
};
meta = {
description = "Type-safe physical computations and unit conversions in Idris";
homepage = https://github.com/timjb/quantities;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ imuli ];
};
}