From 076f3ecd44d4b985ecf894af79ad600a6f1727d8 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 28 Aug 2022 23:54:23 +0200 Subject: [PATCH 26/81] gnu: Add signon-plugin-oauth2. * gnu/packages/qt.scm (signon-plugin-oauth2): New variable. diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 213ca9a942..7d27ff5e45 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -4279,6 +4279,38 @@ (define-public signond (description "This package provides A D-Bus service which performs user authentication on behalf of its clients") (license license:lgpl2.1+))) + +(define-public signon-plugin-oauth2 + (package + (name "signon-plugin-oauth2") + (version "0.25") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/accounts-sso/signon-plugin-oauth2") + (commit (string-append "VERSION_" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16aslnyk8jdg03zcg97rp6qzd0gmclj14hyhliksz8jgfz1l0w7c")))) + (build-system qt-build-system) + (native-inputs (list doxygen pkg-config)) + (inputs (list signond)) + (arguments + (list #:tests? #f + #:make-flags #~(list (string-append "INSTALL_ROOT=" #$output)) + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + ; Don't treat warnings as erros + (substitute* "common-project-config.pri" + (("-Werror") "")) + (invoke "qmake" (string-append "PREFIX=" #$output) + (string-append "LIBDIR=" #$output "/lib"))))))) + (home-page "") + (synopsis "OAuth 2 plugin for signon") + (description "") + (license license:lgpl2.1+))) ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar -- 2.37.2