12 pname = "cdecl-blocks";
13 version = "2.5-unstable-2024-05-07";
15 src = fetchFromGitHub {
16 owner = "ridiculousfish";
17 repo = "cdecl-blocks";
18 rev = "1e6e1596771183d9bb90bcf152d6bc2055219a7e";
19 hash = "sha256-5XuiYkFe+QvVBRIXRieKoE0zbISMvU1iLgEfkw6GnlE=";
24 # when `USE_READLINE` is enabled, this option will not be present
25 ./test_remove_interactive_line.patch
29 substituteInPlace cdecl.c \
30 --replace 'getline' 'cdecl_getline'
46 NIX_CFLAGS_COMPILE = toString (
51 ++ lib.optionals stdenv.cc.isClang [
52 "-Wno-error=int-conversion"
53 "-Wno-error=incompatible-function-pointer-types"
56 NIX_LDFLAGS = "-lreadline";
60 "CC=${lib.getExe stdenv.cc}"
61 "PREFIX=${placeholder "out"}"
62 "BINDIR=${placeholder "out"}/bin"
63 "MANDIR=${placeholder "out"}/man1"
64 "CATDIR=${placeholder "out"}/cat1"
75 description = "Translator English -- C/C++ declarations";
76 homepage = "https://cdecl.org";
77 license = lib.licenses.publicDomain;
78 maintainers = with lib.maintainers; [ sigmanificient ];
79 platforms = lib.platforms.unix;
80 mainProgram = "cdecl";