Files
nixpkgs/pkgs/by-name/ml/mlib/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "mlib";
version = "0.8.0";
src = fetchFromGitHub {
owner = "P-p-H-d";
repo = "mlib";
rev = "V${version}";
hash = "sha256-l91UGIxCd6868F21jHTEQd6CgKtuUigxgZJTTnuVPwo=";
};
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"PREFIX=$(out)"
];
doCheck = true;
meta = with lib; {
description = "Library of generic and type safe containers in pure C language";
longDescription = ''
M*LIB (M star lib) is a C library enabling to define and use generic and
type safe container, aka handling generic containers in in pure C
language. The objects within the containers can be trivial or very
complex: they can have their own constructor, destructor, operators or can
be basic C type like the C type 'int'. This makes it possible to construct
fully recursive objects (container-of[...]-container-of-type-T), without
erasing type information (typically using void pointers or resorting to C
macro to access the container).
'';
homepage = "https://github.com/P-p-H-d/mlib";
changelog = "https://github.com/P-p-H-d/mlib/releases/tag/${src.rev}";
license = licenses.bsd2;
maintainers = with maintainers; [ azahi ];
platforms = platforms.unix;
};
}