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

42 lines
1.2 KiB
Nix
Raw Normal View History

2021-02-10 11:42:15 +00:00
{ stdenv
, lib
, fetchgit
, meson
, ninja
}:
2020-07-06 04:07:25 +01:00
stdenv.mkDerivation rec {
pname = "tllist";
2021-02-10 11:42:15 +00:00
version = "1.0.5";
2020-07-06 04:07:25 +01:00
src = fetchgit {
url = "https://codeberg.org/dnkl/tllist.git";
2020-10-12 17:11:31 +01:00
rev = version;
2021-02-10 11:42:15 +00:00
sha256 = "wJEW7haQBtCR2rffKOFyqH3aq0eBr6H8T6gnBs2bNRg=";
2020-07-06 04:07:25 +01:00
};
2021-02-10 11:42:15 +00:00
nativeBuildInputs = [ meson ninja ];
2020-07-06 04:07:25 +01:00
2020-10-12 17:11:31 +01:00
doCheck = true;
2020-07-06 04:07:25 +01:00
meta = with lib; {
homepage = "https://codeberg.org/dnkl/tllist";
description = "C header file only implementation of a typed linked list";
2021-02-10 11:42:15 +00:00
longDescription = ''
Most C implementations of linked list are untyped. That is, their data
carriers are typically void *. This is error prone since your compiler
will not be able to help you correct your mistakes (oh, was it a
pointer-to-a-pointer... I thought it was just a pointer...).
tllist addresses this by using pre-processor macros to implement dynamic
types, where the data carrier is typed to whatever you want; both
primitive data types are supported as well as aggregated ones such as
structs, enums and unions.
'';
2020-07-06 04:07:25 +01:00
license = licenses.mit;
2021-02-10 11:42:15 +00:00
maintainers = with maintainers; [ fionera AndersonTorres ];
2021-03-10 10:59:41 +00:00
platforms = platforms.all;
2020-07-06 04:07:25 +01:00
};
}