8 stdenv.mkDerivation (finalAttrs: {
12 src = fetchFromGitHub {
15 rev = finalAttrs.version;
16 hash = "sha256-GFK2yjtxAwwstoJQGCXxwNKxn3LL74FBxad7JdOn0pU=";
27 "-DLIBDICT_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
28 "-DLIBDICT_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
31 env.NIX_CFLAGS_COMPILE = toString (
32 lib.optionals stdenv.cc.isClang [
33 "-Wno-error=strict-prototypes"
34 "-Wno-error=newline-eof"
41 homepage = "https://github.com/rtbrick/libdict/";
42 changelog = "https://github.com/rtbrick/libdict/releases/tag/${finalAttrs.version}";
43 description = "C library of key-value data structures";
44 license = licenses.bsd2;
45 maintainers = teams.wdz.members;