7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 hash = "sha256-r8ol923tNkZ13QXWjWpMrN6rBjjjg5XoBCho4OKdyvY=";
19 "CC=${stdenv.cc.targetPrefix}cc"
26 description = "Library of generic and type safe containers in pure C language";
28 M*LIB (M star lib) is a C library enabling to define and use generic and
29 type safe container, aka handling generic containers in in pure C
30 language. The objects within the containers can be trivial or very
31 complex: they can have their own constructor, destructor, operators or can
32 be basic C type like the C type 'int'. This makes it possible to construct
33 fully recursive objects (container-of[...]-container-of-type-T), without
34 erasing type information (typically using void pointers or resorting to C
35 macro to access the container).
37 homepage = "https://github.com/P-p-H-d/mlib";
38 changelog = "https://github.com/P-p-H-d/mlib/releases/tag/${src.rev}";
39 license = licenses.bsd2;
40 maintainers = with maintainers; [ azahi ];
41 platforms = platforms.unix;