1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libiconv }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "RAFl/+I+usUfeG/l17F3ltThK7G4+TekyQGwzQIgeH8=";
14 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [ libiconv ];
16 configureFlags = lib.optional stdenv.hostPlatform.isDarwin "LDFLAGS=-liconv";
19 description = "Iconv based simplified-traditional chinese conversion tool";
20 mainProgram = "cconv";
21 homepage = "https://github.com/xiaoyjy/cconv";
22 license = licenses.mit;
23 platforms = platforms.all;
24 maintainers = [ maintainers.redfish64 ];