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

47 lines
1.3 KiB
Nix
Raw Normal View History

2021-02-10 11:42:15 +00:00
{ stdenv
, lib
, fetchFromGitea
2021-02-10 11:42:15 +00:00
, meson
, ninja
}:
2020-07-06 03:07:25 +00:00
stdenv.mkDerivation rec {
pname = "tllist";
2021-02-10 11:42:15 +00:00
version = "1.0.5";
2020-07-06 03:07:25 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "dnkl";
repo = "tllist";
2020-10-12 16:11:31 +00:00
rev = version;
2021-02-10 11:42:15 +00:00
sha256 = "wJEW7haQBtCR2rffKOFyqH3aq0eBr6H8T6gnBs2bNRg=";
2020-07-06 03:07:25 +00:00
};
2021-02-10 11:42:15 +00:00
nativeBuildInputs = [ meson ninja ];
2020-07-06 03:07:25 +00:00
mesonBuildType = "release";
2020-10-12 16:11:31 +00:00
doCheck = true;
2020-07-06 03:07:25 +00:00
meta = with lib; {
homepage = "https://codeberg.org/dnkl/tllist";
changelog = "https://codeberg.org/dnkl/tllist/releases/tag/${version}";
2020-07-06 03:07:25 +00:00
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 03:07:25 +00: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 03:07:25 +00:00
};
}