Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 743 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 libiconv, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "cconv"; 11 version = "0.6.3"; 12 13 src = fetchFromGitHub { 14 owner = "xiaoyjy"; 15 repo = "cconv"; 16 rev = "v${version}"; 17 sha256 = "RAFl/+I+usUfeG/l17F3ltThK7G4+TekyQGwzQIgeH8="; 18 }; 19 20 nativeBuildInputs = [ autoreconfHook ]; 21 buildInputs = [ libiconv ]; 22 configureFlags = lib.optional stdenv.hostPlatform.isDarwin "LDFLAGS=-liconv"; 23 24 meta = with lib; { 25 description = "Iconv based simplified-traditional chinese conversion tool"; 26 mainProgram = "cconv"; 27 homepage = "https://github.com/xiaoyjy/cconv"; 28 license = licenses.mit; 29 platforms = platforms.all; 30 maintainers = [ maintainers.redfish64 ]; 31 }; 32}