1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ncurses,
6 readline,
7 autoreconfHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "bitwise";
12 version = "0.50";
13
14 src = fetchFromGitHub {
15 owner = "mellowcandle";
16 repo = "bitwise";
17 rev = "v${version}";
18 sha256 = "sha256-x+ky1X0c0bQZnkNvNNuXN2BoMDtDSCt/8dBAG92jCCQ=";
19 };
20
21 buildInputs = [
22 ncurses
23 readline
24 ];
25 nativeBuildInputs = [ autoreconfHook ];
26
27 meta = with lib; {
28 description = "Terminal based bitwise calculator in curses";
29 homepage = "https://github.com/mellowcandle/bitwise";
30 license = licenses.gpl3Only;
31 maintainers = [ maintainers.whonore ];
32 platforms = platforms.unix;
33 mainProgram = "bitwise";
34 };
35}