blob: 355faed38a07d1b0223b0528ee7c42dccc8859f3 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
stdenv,
fetchFromGitHub,
readline,
bc,
python3Packages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bcal";
version = "2.6";
src = fetchFromGitHub {
owner = "jarun";
repo = "bcal";
tag = "v${finalAttrs.version}";
hash = "sha256-Jub6nzol5Wmt/B8U5jmuyTHEKnsg3N28zDjWn/wRhOY=";
};
buildInputs = [ readline ];
installFlags = [ "PREFIX=$(out)" ];
doCheck = true;
nativeCheckInputs = [
bc
python3Packages.pytestCheckHook
];
enabledTestPaths = [ "test.py" ];
meta = {
description = "Storage conversion and expression calculator";
mainProgram = "bcal";
homepage = "https://github.com/jarun/bcal";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
maintainers = [ ];
};
})
|