diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-02-23 00:02:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 00:02:23 +0000 |
commit | 7f396edf1684bf51ad4e8519bf30ea0db791b4d3 (patch) | |
tree | 41d0cb513b0788a4972608f9cd27e116aedde7c6 /pkgs/tools/misc | |
parent | 68dd6912f3672d764b7dc896108bd7ba97d5944a (diff) | |
parent | 6518cfd6671d3de8f6db2a03c2395c8f2db6cd9c (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/ccal/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ccal/default.nix b/pkgs/tools/misc/ccal/default.nix new file mode 100644 index 0000000000000..55ccb7f774c9c --- /dev/null +++ b/pkgs/tools/misc/ccal/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, lib +, fetchurl +, makeWrapper +, ghostscript_headless # for ps2pdf binary +}: + +stdenv.mkDerivation rec { + pname = "ccal"; + version = "2.5.3"; + src = fetchurl { + url = "http://ccal.chinesebay.com/ccal/${pname}-${version}.tar.gz"; + sha256 = "sha256-PUy9yfkFzgKrSEBB+79/C3oxmuajUMbBbWNuGlpQ35Y="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + makeFlags = [ "CXX:=$(CXX)" "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ]; + installTargets = [ "install" "install-man" ]; + + # ccalpdf depends on a `ps2pdf` binary in PATH + postFixup = '' + wrapProgram $out/bin/ccalpdf \ + --prefix PATH : ${lib.makeBinPath [ ghostscript_headless ]}:$out/bin + ''; + + meta = { + homepage = "http://ccal.chinesebay.com/ccal.htm"; + description = "Command line Chinese calendar viewer, similar to cal"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ sharzy ]; + platforms = lib.platforms.all; + }; +} + |