tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
programmer-calculator: init at 2.1
Chad Jablonski
4 years ago
11b44aaa
8820b0c3
+36
2 changed files
expand all
collapse all
unified
split
pkgs
applications
science
math
programmer-calculator
default.nix
top-level
all-packages.nix
+34
pkgs/applications/science/math/programmer-calculator/default.nix
···
1
1
+
{ lib, gccStdenv, fetchFromGitHub, ncurses }:
2
2
+
3
3
+
gccStdenv.mkDerivation rec {
4
4
+
pname = "programmer-calculator";
5
5
+
version = "2.1";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "alt-romes";
9
9
+
repo = pname;
10
10
+
rev = "v${version}";
11
11
+
sha256 = "1vvpbj24ijl9ma0h669n9x0z1im3vqdf8zf2li0xf5h97b14gmv0";
12
12
+
};
13
13
+
14
14
+
buildInputs = [ ncurses ];
15
15
+
16
16
+
installPhase = ''
17
17
+
runHook preInstall
18
18
+
install -Dm 555 pcalc -t "$out/bin"
19
19
+
runHook postInstall
20
20
+
'';
21
21
+
22
22
+
meta = with lib; {
23
23
+
description = "A terminal calculator for programmers";
24
24
+
longDescription = ''
25
25
+
Terminal calculator made for programmers working with multiple number
26
26
+
representations, sizes, and overall close to the bits
27
27
+
'';
28
28
+
homepage = "https://alt-romes.github.io/programmer-calculator";
29
29
+
changelog = "https://github.com/alt-romes/programmer-calculator/releases/tag/v${version}";
30
30
+
license = licenses.gpl3Only;
31
31
+
maintainers = with lib.maintainers; [ cjab ];
32
32
+
platforms = platforms.all;
33
33
+
};
34
34
+
}
+2
pkgs/top-level/all-packages.nix
···
30173
30173
30174
30174
pcalc = callPackage ../applications/science/math/pcalc { };
30175
30175
30176
30176
+
programmer-calculator = callPackage ../applications/science/math/programmer-calculator { };
30177
30177
+
30176
30178
bcal = callPackage ../applications/science/math/bcal { };
30177
30179
30178
30180
pspp = callPackage ../applications/science/math/pspp { };