nixpkgs/pkgs/development/libraries/mlib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.3 KiB
Nix
Raw Normal View History

2022-09-11 12:06:44 +02:00
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "mlib";
2022-12-31 09:00:05 +01:00
version = "0.7.0";
2022-09-11 12:06:44 +02:00
src = fetchFromGitHub {
owner = "P-p-H-d";
repo = pname;
rev = "V${version}";
2022-12-31 09:00:05 +01:00
hash = "sha256-obQD3TWuGCAs5agnaiJF5Rasn8J283H/cdvKCCAzcB8=";
2022-09-11 12:06:44 +02:00
};
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;
};
}