From daace980f6936ca0d61452658c5af0994908d2ce Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Wed, 4 May 2022 12:51:58 +0300 Subject: [PATCH] the-foundation: init at 1.4.0 --- .../libraries/the-foundation/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/libraries/the-foundation/default.nix diff --git a/pkgs/development/libraries/the-foundation/default.nix b/pkgs/development/libraries/the-foundation/default.nix new file mode 100644 index 000000000000..012d13964c4b --- /dev/null +++ b/pkgs/development/libraries/the-foundation/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, fetchFromGitea +, cmake +, pkg-config +, curl +, libunistring +, openssl +, pcre +, zlib +}: + +stdenv.mkDerivation rec { + pname = "the-foundation"; + version = "1.4.0"; + + src = fetchFromGitea { + domain = "git.skyjake.fi"; + owner = "skyjake"; + repo = "the_Foundation"; + rev = "v${version}"; + hash = "sha256-IHwWJryG4HcrW9Bf8KJrisCrbF86RBQj6Xl1HTmcr6k="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ curl libunistring openssl pcre zlib ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b4b57603731..235d32ecdd9f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20835,6 +20835,8 @@ with pkgs; tet = callPackage ../development/tools/misc/tet { }; + the-foundation = callPackage ../development/libraries/the-foundation { }; + theft = callPackage ../development/libraries/theft { }; thrift = callPackage ../development/libraries/thrift { };