5 , ghostscript_headless # for ps2pdf binary
8 stdenv.mkDerivation rec {
12 url = "https://ccal.chinesebay.com/ccal-${version}.tar.gz";
13 sha256 = "sha256-PUy9yfkFzgKrSEBB+79/C3oxmuajUMbBbWNuGlpQ35Y=";
16 nativeBuildInputs = [ makeWrapper ];
18 makeFlags = [ "CXX:=$(CXX)" "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
19 installTargets = [ "install" "install-man" ];
21 # ccalpdf depends on a `ps2pdf` binary in PATH
23 wrapProgram $out/bin/ccalpdf \
24 --prefix PATH : ${lib.makeBinPath [ ghostscript_headless ]}:$out/bin
28 homepage = "https://ccal.chinesebay.com/ccal.htm";
29 description = "Command line Chinese calendar viewer, similar to cal";
30 license = lib.licenses.gpl3;
31 maintainers = with lib.maintainers; [ sharzy ];
32 platforms = lib.platforms.all;