nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / th / the-foundation / package.nix
blobe5f0309dfa6e758bd3a749927151c92c91479a77
2   lib,
3   stdenv,
4   fetchFromGitea,
5   cmake,
6   pkg-config,
7   curl,
8   libunistring,
9   openssl,
10   pcre,
11   zlib,
14 stdenv.mkDerivation (finalAttrs: {
15   pname = "the-foundation";
16   version = "1.9.1";
18   src = fetchFromGitea {
19     domain = "git.skyjake.fi";
20     owner = "skyjake";
21     repo = "the_Foundation";
22     rev = "v${finalAttrs.version}";
23     hash = "sha256-M3nG/926bz9US4R9cTyBw2n6oNy7VriGGzuHgRWX4eg=";
24   };
26   nativeBuildInputs = [
27     cmake
28     pkg-config
29   ];
31   buildInputs = [
32     curl
33     libunistring
34     openssl
35     pcre
36     zlib
37   ];
39   cmakeFlags = [
40     (lib.cmakeFeature "UNISTRING_DIR" "${libunistring}")
41   ];
43   postFixup = ''
44     substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
45       --replace '="''${prefix}//' '="/'
46   '';
48   meta = {
49     description = "Opinionated C11 library for low-level functionality";
50     homepage = "https://git.skyjake.fi/skyjake/the_Foundation";
51     license = lib.licenses.bsd2;
52     maintainers = with lib.maintainers; [ sikmir ];
53     platforms = lib.platforms.unix;
54   };