10 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
14 owner = "dgoodmaniii";
17 sha256 = "1ic63gpdda762x6ks3al71dwgmsy2isicqyr2935bd245jx8s209";
20 # author do not use configure and prefix directly using $prefix
22 # graphical version of dozdc requires xforms, which is not i nixpkgs so I turned it down
23 "XFORMS_FLAGS=-UXFORMS"
25 "bindir=$(prefix)/bin/"
27 # some include hardcodes the lua libraries path. This is a patch for that
28 patches = [ ./lua-header.patch ];
29 preBuild = "cd dozenal";
36 # Parallel builds fail due to no dependencies between subdirs.
37 # As a result some subdirs are atempted to build twice:
38 # ../dec/dec.c:39:10: fatal error: conv.h: No such file or directory
39 # Let's disable parallelism until it's fixed upstream:
40 # https://gitlab.com/dgoodmaniii/dozenal/-/issues/8
41 enableParallelBuilding = false;
43 # I remove gdozdc, as I didn't figure all it's dependency yet.
44 postInstall = "rm $out/bin/gdozdc";
47 description = "Complete suite of dozenal (base twelve) programs";
51 doz --- a converter; converts decimal numbers into dozenal. Accepts
52 input in standard or exponential notation (i.e., "1492.2" or "1.4922e3").
53 dec --- a converter; converts dozenal numbers into decimal. Accepts input
54 in standard or exponential notation (i.e., "X44;4" or "X;444e2").
55 dozword --- converts a dozenal number (integers only) into words,
56 according to the Pendlebury system.
57 dozdc --- a full-featured scientific calculator which works in the
58 dozenal base. RPN command line.
59 tgmconv --- a converter for all standard measurements; converts to and
60 from TGM, Imperial, customary, and SI metric.
61 dozpret --- a pretty-printer for dozenal numbers; inserts spacing (or
62 other characters) as desired, and can also transform transdecimal digits
63 from 'X' to 'E' into any character or sequence of characters desired.
64 dozdate --- a more-or-less drop-in replacement for GNU and BSD date, it
65 outputs the date and time in dozenal, as well as containing some TGM
67 dozstring --- a simple byte converter; absorbs a string either from
68 standard input or a command line argument, leaving it identical but
69 for the numbers, which it converts into dozenal. Options for padding
70 and for not converting specific numbers.
71 doman --- a converter which takes a dozenal integer and
72 emits its equivalent in a non-place-value system, such as
73 Roman numerals. Arbitrary ranks and symbols may be used.
74 Defaults to dozenal Roman numerals.
76 homepage = "https://github.com/dgoodmaniii/dozenal/";
77 maintainers = with lib.maintainers; [ CharlesHD ];
78 license = lib.licenses.gpl3;