lol

Merge pull request #41989 from CharlesHD/submit/dozenal

dozenal: init at version v12010904

authored by

Joachim F and committed by
GitHub
203cd959 8158297a

+102
+5
maintainers/maintainer-list.nix
··· 673 673 github = "changlinli"; 674 674 name = "Changlin Li"; 675 675 }; 676 + CharlesHD = { 677 + email = "charleshdespointes@gmail.com"; 678 + github = "CharlesHD"; 679 + name = "Charles Huyghues-Despointes"; 680 + }; 676 681 chaoflow = { 677 682 email = "flo@chaoflow.net"; 678 683 github = "chaoflow";
+61
pkgs/applications/misc/dozenal/default.nix
··· 1 + { stdenv, fetchFromGitHub, ncurses, hdate, lua5_2 }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "12010904"; 5 + name = "dozenal-${version}"; 6 + src = fetchFromGitHub { 7 + owner = "dgoodmaniii"; 8 + repo = "dozenal"; 9 + rev = "v${version}"; 10 + sha256 = "1ic63gpdda762x6ks3al71dwgmsy2isicqyr2935bd245jx8s209"; 11 + }; 12 + makeFlags = [ 13 + # author do not use configure and prefix directly using $prefix 14 + "prefix=$(out)" 15 + # graphical version of dozdc requires xforms, which is not i nixpkgs so I turned it down 16 + "XFORMS_FLAGS=-UXFORMS" 17 + "LUALIB=-llua" 18 + "bindir=$(prefix)/bin/" 19 + ]; 20 + # some include hardcodes the lua libraries path. This is a patch for that 21 + patches = [ ./lua-header.patch ]; 22 + preBuild = "cd dozenal"; 23 + buildInputs = [ ncurses hdate lua5_2 ]; 24 + # I remove gdozdc, as I didn't figure all it's dependency yet. 25 + postInstall = "rm $out/bin/gdozdc"; 26 + 27 + meta = { 28 + description = "A complete suite of dozenal (base twelve) programs"; 29 + longDescription = '' 30 + Programs 31 + 32 + doz --- a converter; converts decimal numbers into dozenal. Accepts 33 + input in standard or exponential notation (i.e., "1492.2" or "1.4922e3"). 34 + dec --- a converter; converts dozenal numbers into decimal. Accepts input 35 + in standard or exponential notation (i.e., "X44;4" or "X;444e2"). 36 + dozword --- converts a dozenal number (integers only) into words, 37 + according to the Pendlebury system. 38 + dozdc --- a full-featured scientific calculator which works in the 39 + dozenal base. RPN command line. 40 + tgmconv --- a converter for all standard measurements; converts to and 41 + from TGM, Imperial, customary, and SI metric. 42 + dozpret --- a pretty-printer for dozenal numbers; inserts spacing (or 43 + other characters) as desired, and can also transform transdecimal digits 44 + from 'X' to 'E' into any character or sequence of characters desired. 45 + dozdate --- a more-or-less drop-in replacement for GNU and BSD date, it 46 + outputs the date and time in dozenal, as well as containing some TGM 47 + extensions. 48 + dozstring --- a simple byte converter; absorbs a string either from 49 + standard input or a command line argument, leaving it identical but 50 + for the numbers, which it converts into dozenal. Options for padding 51 + and for not converting specific numbers. 52 + doman --- a converter which takes a dozenal integer and 53 + emits its equivalent in a non-place-value system, such as 54 + Roman numerals. Arbitrary ranks and symbols may be used. 55 + Defaults to dozenal Roman numerals. 56 + ''; 57 + homepage = https://github.com/dgoodmaniii/dozenal/; 58 + maintainers = with stdenv.lib.maintainers; [ CharlesHD ]; 59 + license = stdenv.lib.licenses.gpl3; 60 + }; 61 + }
+16
pkgs/applications/misc/dozenal/lua-header.patch
··· 1 + diff -ruN dozenal-12010904/dozenal/dozcal/call_lua.c dozenal-patched/dozenal/dozcal/call_lua.c 2 + --- dozenal-12010904/dozenal/dozcal/call_lua.c 2017-09-04 19:25:01.000000000 +0200 3 + +++ dozenal-patched/dozenal/dozcal/call_lua.c 2018-06-13 10:19:57.821950327 +0200 4 + @@ -38,9 +38,9 @@ 5 + #include"utility.h" 6 + #include"conv.h" 7 + #include"proc_date.h" 8 + -#include<lua5.2/lua.h> 9 + -#include<lua5.2/lauxlib.h> 10 + -#include<lua5.2/lualib.h> 11 + +#include<lua.h> 12 + +#include<lauxlib.h> 13 + +#include<lualib.h> 14 + 15 + void bail(lua_State *L, int err_code, char *filename); 16 + int file_prefix(char **s, char *t);
+16
pkgs/applications/misc/hdate/default.nix
··· 1 + { stdenv, fetchurl }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "1.6.02"; 5 + name = "hdate-${version}"; 6 + src = fetchurl { 7 + url = "https://sourceforge.net/projects/libhdate/files/libhdate/libhdate-${version}/libhdate-${version}.tar.bz2"; 8 + sha256 = "3c930a8deb57c01896dc37f0d7804e5a330ee8e88c4ff610b71f9d2b02c17762"; 9 + }; 10 + meta = { 11 + description = "Hebrew calendar and solar astronomical times library and utilities"; 12 + homepage = https://sourceforge.net/projects/libhdate/; 13 + license = stdenv.lib.licenses.gpl3; 14 + maintainers = with stdenv.lib.maintainers; [ CharlesHD ]; 15 + }; 16 + }
+4
pkgs/top-level/all-packages.nix
··· 1218 1218 pythonPackages = python3Packages; 1219 1219 }; 1220 1220 1221 + dozenal = callPackage ../applications/misc/dozenal { }; 1222 + 1221 1223 dpic = callPackage ../tools/graphics/dpic { }; 1222 1224 1223 1225 dragon-drop = callPackage ../tools/X11/dragon-drop { ··· 1363 1365 grobi = callPackage ../tools/X11/grobi { }; 1364 1366 1365 1367 gti = callPackage ../tools/misc/gti { }; 1368 + 1369 + hdate = callPackage ../applications/misc/hdate { }; 1366 1370 1367 1371 heatseeker = callPackage ../tools/misc/heatseeker { }; 1368 1372