2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitea
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, curl
|
|
|
|
, libunistring
|
|
|
|
, openssl
|
|
|
|
, pcre
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "the-foundation";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.7.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.skyjake.fi";
|
|
|
|
owner = "skyjake";
|
|
|
|
repo = "the_Foundation";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-6bEd8KzOfBse5sQ2zp+cZtEAu8xIl3GqrpxSZ7h/edI=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ curl libunistring openssl pcre zlib ];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
|
|
|
|
--replace '="''${prefix}//' '="/'
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Opinionated C11 library for low-level functionality";
|
|
|
|
homepage = "https://git.skyjake.fi/skyjake/the_Foundation";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2022-11-27 09:42:12 +00:00
|
|
|
})
|