13 stdenv.mkDerivation (finalAttrs: {
14 pname = "the-foundation";
17 src = fetchFromGitea {
18 domain = "git.skyjake.fi";
20 repo = "the_Foundation";
21 rev = "v${finalAttrs.version}";
22 hash = "sha256-6bEd8KzOfBse5sQ2zp+cZtEAu8xIl3GqrpxSZ7h/edI=";
25 nativeBuildInputs = [ cmake pkg-config ];
27 buildInputs = [ curl libunistring openssl pcre zlib ];
30 substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
31 --replace '="''${prefix}//' '="/'
35 description = "Opinionated C11 library for low-level functionality";
36 homepage = "https://git.skyjake.fi/skyjake/the_Foundation";
37 license = licenses.bsd2;
38 maintainers = with maintainers; [ sikmir ];
39 platforms = platforms.unix;