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";
32 buildInputs = [ readline ];
35 NIX_CFLAGS_COMPILE = toString (
40 ++ lib.optionals stdenv.cc.isClang [
41 "-Wno-error=int-conversion"
42 "-Wno-error=incompatible-function-pointer-types"
45 NIX_LDFLAGS = "-lreadline";
49 "CC=${stdenv.cc.targetPrefix}cc"
50 "PREFIX=${placeholder "out"}"
51 "BINDIR=${placeholder "out"}/bin"
52 "MANDIR=${placeholder "out"}/man1"
53 "CATDIR=${placeholder "out"}/cat1"
69 description = "Composing and deciphering C (or C++) declarations or casts, aka ''gibberish.''";
70 homepage = "https://github.com/paul-j-lucas/cdecl";
71 changelog = "https://github.com/paul-j-lucas/cdecl/blob/cdecl-${finalAttrs.version}/ChangeLog";
72 license = lib.licenses.gpl3Only;
73 maintainers = with lib.maintainers; [ sigmanificient ];
74 platforms = lib.platforms.unix;
75 mainProgram = "cdecl";