Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / the-foundation / default.nix
blob9b0fe4de9e44ba5bdf60670a254aeb1fb3bbe16c
1 { lib
2 , stdenv
3 , fetchFromGitea
4 , cmake
5 , pkg-config
6 , curl
7 , libunistring
8 , openssl
9 , pcre
10 , zlib
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "the-foundation";
15   version = "1.7.0";
17   src = fetchFromGitea {
18     domain = "git.skyjake.fi";
19     owner = "skyjake";
20     repo = "the_Foundation";
21     rev = "v${finalAttrs.version}";
22     hash = "sha256-6bEd8KzOfBse5sQ2zp+cZtEAu8xIl3GqrpxSZ7h/edI=";
23   };
25   nativeBuildInputs = [ cmake pkg-config ];
27   buildInputs = [ curl libunistring openssl pcre zlib ];
29   postFixup = ''
30     substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
31       --replace '="''${prefix}//' '="/'
32   '';
34   meta = with lib; {
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;
40   };