2024-10-04 16:56:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitea,
|
|
|
|
cmake,
|
|
|
|
pkg-config,
|
|
|
|
curl,
|
|
|
|
libunistring,
|
|
|
|
openssl,
|
|
|
|
pcre,
|
|
|
|
zlib,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "the-foundation";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.9.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}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-hrwnY8m4xW8Sr2RunwD5VB+gnYUtZxXyGoiO3N23qGM=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
libunistring
|
|
|
|
openssl
|
|
|
|
pcre
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeFeature "UNISTRING_DIR" "${libunistring}")
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
|
|
|
|
--replace '="''${prefix}//' '="/'
|
|
|
|
'';
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
meta = {
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Opinionated C11 library for low-level functionality";
|
|
|
|
homepage = "https://git.skyjake.fi/skyjake/the_Foundation";
|
2024-10-04 16:56:33 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
|
|
platforms = lib.platforms.unix;
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
2022-11-27 09:42:12 +00:00
|
|
|
})
|