ccal: init at 2.5.3
This commit is contained in:
parent
74ba886110
commit
aac6e9c078
35
pkgs/tools/misc/ccal/default.nix
Normal file
35
pkgs/tools/misc/ccal/default.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -384,6 +384,8 @@ with pkgs;
|
||||||
|
|
||||||
btdu = callPackage ../tools/misc/btdu { };
|
btdu = callPackage ../tools/misc/btdu { };
|
||||||
|
|
||||||
|
ccal = callPackage ../tools/misc/ccal { };
|
||||||
|
|
||||||
cereal = callPackage ../development/libraries/cereal { };
|
cereal = callPackage ../development/libraries/cereal { };
|
||||||
|
|
||||||
certgraph = callPackage ../tools/security/certgraph { };
|
certgraph = callPackage ../tools/security/certgraph { };
|
||||||
|
|
Loading…
Reference in a new issue