12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
17 owner = "paul-j-lucas";
19 rev = "refs/tags/cdecl-${finalAttrs.version}";
20 hash = "sha256-GtNB55zFIpt6yYE3olC3yQr2RLsS9AMewzJKDcb67GM=";
24 preConfigure = "./bootstrap";
26 nativeBuildInputs = [ autoconf automake bison flex ];
27 buildInputs = [ readline ];
30 NIX_CFLAGS_COMPILE = toString (
35 ++ lib.optionals stdenv.cc.isClang [
36 "-Wno-error=int-conversion"
37 "-Wno-error=incompatible-function-pointer-types"
40 NIX_LDFLAGS = "-lreadline";
44 "CC=${stdenv.cc.targetPrefix}cc"
45 "PREFIX=${placeholder "out"}"
46 "BINDIR=${placeholder "out"}/bin"
47 "MANDIR=${placeholder "out"}/man1"
48 "CATDIR=${placeholder "out"}/cat1"
58 outputs = [ "out" "man" ];
61 description = "Composing and deciphering C (or C++) declarations or casts, aka ''gibberish.''";
62 homepage = "https://github.com/paul-j-lucas/cdecl";
63 changelog = "https://github.com/paul-j-lucas/cdecl/blob/cdecl-${finalAttrs.version}/ChangeLog";
64 license = lib.licenses.gpl3Only;
65 maintainers = with lib.maintainers; [ sigmanificient ];
66 platforms = lib.platforms.unix;
67 mainProgram = "cdecl";