nixpkgs/pkgs/tools/text/cconv/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
654 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 ];
meta = with lib; {
description = "A iconv based simplified-traditional chinese conversion tool";
mainProgram = "cconv";
homepage = "https://github.com/xiaoyjy/cconv";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.redfish64 ];
};
}