Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
26 lines
732 B
Nix
26 lines
732 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cconv";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xiaoyjy";
|
|
repo = "cconv";
|
|
rev = "v${version}";
|
|
sha256 = "RAFl/+I+usUfeG/l17F3ltThK7G4+TekyQGwzQIgeH8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ libiconv ];
|
|
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "LDFLAGS=-liconv";
|
|
|
|
meta = with lib; {
|
|
description = "Iconv based simplified-traditional chinese conversion tool";
|
|
mainProgram = "cconv";
|
|
homepage = "https://github.com/xiaoyjy/cconv";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.redfish64 ];
|
|
};
|
|
}
|