From 14b362eb2272d386596eb10bb9915d86ec09e020 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 20 Apr 2023 22:33:29 +0800 Subject: [PATCH] guile-gnutls: init at 3.7.11 --- .../guile-modules/guile-gnutls/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/guile-modules/guile-gnutls/default.nix diff --git a/pkgs/development/guile-modules/guile-gnutls/default.nix b/pkgs/development/guile-modules/guile-gnutls/default.nix new file mode 100644 index 000000000000..dae082c9d11c --- /dev/null +++ b/pkgs/development/guile-modules/guile-gnutls/default.nix @@ -0,0 +1,42 @@ +{ lib +, stdenv +, fetchurl +, gnutls +, guile +, libtool +, pkg-config +, texinfo +}: + +stdenv.mkDerivation rec { + pname = "guile-gnutls"; + version = "3.7.11"; + + src = fetchurl { + url = "mirror://gnu/gnutls/guile-gnutls-${version}.tar.gz"; + hash = "sha256-BY6qXHY+Gfv5PotO78ESgPgHBTXBOMmb4R8AzWhWE98="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + gnutls + guile + libtool + texinfo + ]; + + configureFlags = [ + "--with-guile-site-dir=${builtins.placeholder "out"}/share/guile/site" + "--with-guile-site-ccache-dir=${builtins.placeholder "out"}/share/guile/site" + "--with-guile-extension-dir=${builtins.placeholder "out"}/share/guile/extensions" + ]; + + meta = with lib; { + homepage = "https://gitlab.com/gnutls/guile/"; + description = "Guile bindings for GnuTLS library"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ foo-dogsquared ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 30d05d835e4e..ee321ecf2b56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17171,6 +17171,8 @@ with pkgs; guile-git = callPackage ../development/guile-modules/guile-git { }; + guile-gnutls = callPackage ../development/guile-modules/guile-gnutls { }; + guile-json = callPackage ../development/guile-modules/guile-json { }; guile-lib = callPackage ../development/guile-modules/guile-lib { };