From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WFSaBN1FVmeKQAEAe85BDQ:P1 (envelope-from ) for ; Mon, 09 Dec 2024 01:20:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WFSaBN1FVmeKQAEAe85BDQ (envelope-from ) for ; Mon, 09 Dec 2024 02:20:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=jKHYzCf3; dkim=fail ("headers rsa verify failed") header.d=ieee.org header.s=google header.b=VSEeD5wX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733707229; a=rsa-sha256; cv=none; b=jsiEvH44D2RozZuLQ7wnaD6+H5fRRk6n8vO0Ccw+BJuXYtaJ990kPd0D5Dk47FXN9XzzH4 3+UtN+OSOvLVtvkZn3ZefVsYG3Gh0UDiysfbjTsxyjdYgkaxGLrBWK7iHny2/PHv0rc6zg BOyYrOHKuTVfCvmYFCs6D5O/xPV5mypaKH7/n8ThZaZ2RevaY41bAF6bLCLHKecvWCOyly mdRIFzwzwJhCWn2Irdry9fRdeCyFXiOoy9du9MIV72bQVq2ZNr0t2k78TnaMM6BygYPxZM KUIAn8VxMPKtl0T4YRMnQL4fIOhRJOumIZ8mRkeFd7rm/XK7AcaRDC5diiDOXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=jKHYzCf3; dkim=fail ("headers rsa verify failed") header.d=ieee.org header.s=google header.b=VSEeD5wX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733707229; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mj2sZaJvmckXcIiydwlryl4ioB+olod6gTSAPeZKtYg=; b=Ezwm7kmfyA+b2NiDVHByGnfj8winS4ROC92aAFBnB025cYCjCBIm+Agoa1ps2WRIkNVjVB Cobz8yAq6h7jzMF8dP/xbWdHRcAhmYUKlmdl4v4gaLdwHEhnZcT7aZZy9NuVHCaeks21D+ uCJFfduAsDYPRcKD0ltckwRtWNchNAGwf9pJYzWaWYbrTxH2Tbgs/ytLMwUO20g3CdkaNQ sbhGe1dP1k1a15VdUPb2+uVlaiZVQ14+7wxNiPfISWq8r7wEkvoWS69G8YJLn4hyvE4jH1 yzpLWv0H8YlHeeZANv/scTvhajTHdZTkFB98atcvOZT3WZ1CFFlKk9dHhQtCVA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BFB5D8AE34 for ; Mon, 09 Dec 2024 02:20:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKSRU-0005Ve-0x; Sun, 08 Dec 2024 20:20:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKSRQ-0005U4-AG for guix-patches@gnu.org; Sun, 08 Dec 2024 20:20:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKSRQ-0006KW-1W for guix-patches@gnu.org; Sun, 08 Dec 2024 20:20:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=mj2sZaJvmckXcIiydwlryl4ioB+olod6gTSAPeZKtYg=; b=jKHYzCf3BlPVDU9KWkI2D/zDTuWc+OZLtoyBVnWjJ3dO3FSwK1JCDvSCRB9E3lTL0Yp2qS4fegloppJiwkIvkVsHOl5tvECcER/NN0XnNnIUXuiWKOOWLwF+jN4OnsJQJQEcMhLZfYqPZVaVioKmDmtR7rB/xDuvFWAV2vQOqgKAOkP4qQpZ4pOuwAhL1NoRO+JnG/H9xMvXH5rXUFjnaDQBe5wyCOSKNOO1mEOWKuQBTBKtWNx1f3rnsQ2AqTKFCsTsa1/D4bcf18noQmQnoeOI1Y8eYzpwHFF1Lxa4coZeovN7TWuabuIBajSYwEZUY3kfTusESMuTQjg1iUGe3g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKSRP-0003Jv-T3 for guix-patches@gnu.org; Sun, 08 Dec 2024 20:20:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74234] [PATCH rust-team v3 23/23] gnu: Add gnome-authenticator. Resent-From: Aaron Covrig Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Dec 2024 01:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74234@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 74234-submit@debbugs.gnu.org id=B74234.173370719112706 (code B ref 74234); Mon, 09 Dec 2024 01:20:03 +0000 Received: (at 74234) by debbugs.gnu.org; 9 Dec 2024 01:19:51 +0000 Received: from localhost ([127.0.0.1]:52236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKSRC-0003Ip-G7 for submit@debbugs.gnu.org; Sun, 08 Dec 2024 20:19:51 -0500 Received: from mail-qv1-f45.google.com ([209.85.219.45]:54468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKSRA-0003Ig-9F for 74234@debbugs.gnu.org; Sun, 08 Dec 2024 20:19:49 -0500 Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6d87ab49423so39209196d6.0 for <74234@debbugs.gnu.org>; Sun, 08 Dec 2024 17:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; t=1733707127; x=1734311927; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mj2sZaJvmckXcIiydwlryl4ioB+olod6gTSAPeZKtYg=; b=VSEeD5wXHJmVndA7LxhK76rW5i7AAbvzMGL0ys8IZvgttJ8KW8sFScDN0WNyhzdibQ THh7a9ATxNwDUTAm5g2GTdWjK5VgbL9hEeih7X4wE5lUcgksFETaG0ufCDkGa1Ergp/0 dD0fdMQ1WPXM9SdQAwHeL+Q7XH24TQsVArx7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733707127; x=1734311927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mj2sZaJvmckXcIiydwlryl4ioB+olod6gTSAPeZKtYg=; b=YjIJpkjkoAFVJOLnBj+WCqCGaDsF7NgDGmgnPzY140rbzyqUhSqOeHtY3o9VWXHwcx kMkJlt65PV//SZV6Zq/AyT7DwvolVrKicN3tp2C/yQdKMOXNmqKS7HEOWL3r0659zoGi WPKCcFZF5VYvTcOSulOW6u11IeL2ewFRST5+NDIzJwF+HjHavMwpTQC/99jN1DnEPqap LKzYHY5f7HOSyjm/ZGiOYWpin6xFtPcIIqki24iK8k/bGEpP/5i1QRCOSOaQH5Je4Q5r FZ8Bj7Vc+e2zRafqqp3KYfJG0s1tc4kGx8CRbeU12l4dk3W9tEgsVm2pKSDHLZ0VY3fm KEWw== X-Gm-Message-State: AOJu0YwaJHsRLwDDvlFGQmnRyNk8HdfSSyBFrYkyE0TyfII5GBciUhD3 IBfVj36aRUwT0K9r1KdF9uV1ieue4KdW42EBiWtlYTyPVSmBzOP48qdgk8B+fF+nt5a44bT7hEy kUdF2GyRJAGoVwx+vQ0bA0eLNPRW1pWeA6IRO92ggc0hLew3zF16/onREt+yXgteAtncRc5lX3z g5qevX5tRfetzOlf2d5B9oEGuHZjZX1vmTM7EbFn8= X-Gm-Gg: ASbGnctWSg05FgXMJcgTvee2Z7KBLr6CFLyQEEcjYWDOXeZUVPz5QzYywY+asFaPyMg YRNRwgJyWVQdQZlxGek++C5jQ57Bo3WUYKqJtW+JvwB9whZQill919K0Q9PObElxzPgw0oYaU8R W8APCThTk16udHoVn5YDXBoWBP3FCs2B0zBjHE4EgrLekwe5ktLjgA/2Egq+Nh+PGU9SnNW0utX NrPKQSuH2p+ZZhvz9Uyxn+8+hKiNyD1dYqg1yMyjoXnzZuOesDwMIRa27AIQf/ck2r8TKWcVEBA ps57z8/n5e6MuKsfoEiaixzeBcruALhHhwcpokx5fQGsSPWpXLA= X-Google-Smtp-Source: AGHT+IF6r53JsbdPX1WgitDo8seUrD+gWn3u+RDeuSyIwjmc17srWT4sjZnVNB42jo3UJdhzDeBfNQ== X-Received: by 2002:ad4:5c66:0:b0:6d8:b3a7:75ba with SMTP id 6a1803df08f44-6d8e71fb602mr199437886d6.45.1733707127426; Sun, 08 Dec 2024 17:18:47 -0800 (PST) Received: from mobile-dev.fios-router.home (pool-71-244-152-222.bltmmd.fios.verizon.net. [71.244.152.222]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d8e69b7143sm34894816d6.61.2024.12.08.17.18.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2024 17:18:46 -0800 (PST) Date: Sun, 8 Dec 2024 20:11:47 -0500 Message-ID: <20241209011150.1455224-24-aaron.covrig.us@ieee.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241209011150.1455224-1-aaron.covrig.us@ieee.org> References: <20241209011150.1455224-1-aaron.covrig.us@ieee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Aaron Covrig X-ACL-Warn: , Aaron Covrig via Guix-patches From: Aaron Covrig via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-Migadu-Queue-Id: BFB5D8AE34 X-Migadu-Scanner: mx10.migadu.com X-TUID: 6mqNFCz995N0 From: Giacomo Leidi * gnu/packages/rust-apps.scm (gnome-authenticator): New variable. Change-Id: Ibf3e0a3558c7623abdf313f9c4393825cd04f1c8 --- gnu/packages/rust-apps.scm | 256 ++++++++++++++++++++++++++++++++++++- 1 file changed, 255 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 92f133ca12..216d504030 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; Copyright © 2024 Suhail Singh ;;; Copyright © 2024 Jordan Moore +;;; Copyright © 2024 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -61,6 +62,7 @@ (define-module (gnu packages rust-apps) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages admin) + #:use-module (gnu packages aidc) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages cmake) @@ -80,10 +82,11 @@ (define-module (gnu packages rust-apps) #:use-module (gnu packages emacs) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) - #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages ibus) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) @@ -3929,6 +3932,257 @@ (define-public git-delta @command{grep} and a stylized box presentation.") (license license:expat))) +(define-public gnome-authenticator + (package + (name "gnome-authenticator") + (version "4.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.gnome.org/World/Authenticator.git/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zavax35n048spx097ymiq31s8b879qwbg8xmcxcx73r6m823mic")))) + (build-system cargo-build-system) + (arguments + (list + #:install-source? #f + #:cargo-inputs `(("rust-aes-gcm" ,rust-aes-gcm-0.10) + ("rust-anyhow" ,rust-anyhow-1) + ("rust-rust-argon2" ,rust-rust-argon2-2) + ("rust-aperture" ,rust-aperture-0.3) + ("rust-ashpd" ,rust-ashpd-0.6) + ("rust-data-encoding" ,rust-data-encoding-2) + ("rust-diesel" ,rust-diesel-2) + ("rust-diesel-migrations" ,rust-diesel-migrations-2) + ("rust-futures-channel" ,rust-futures-channel-0.3) + ("rust-futures-executor" ,rust-futures-executor-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-gettext-rs" ,rust-gettext-rs-0.7) + ("rust-gtk4" ,rust-gtk4-0.7) + ("rust-hex" ,rust-hex-0.4) + ("rust-image" ,rust-image-0.24) + ("rust-libadwaita" ,rust-libadwaita-0.5) + ("rust-oo7" ,rust-oo7-0.2) + ("rust-percent-encoding" ,rust-percent-encoding-2.1) + ("rust-prost" ,rust-prost-0.12) + ("rust-qrencode" ,rust-qrencode-0.14) + ("rust-rand" ,rust-rand-0.8) + ("rust-reqwest" ,rust-reqwest-0.11) + ("rust-ring" ,rust-ring-0.17) + ("rust-scrypt" ,rust-scrypt-0.11) + ("rust-search-provider" ,rust-search-provider-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-svg-metadata" ,rust-svg-metadata-0.4) + ("rust-tokio" ,rust-tokio-1) + ("rust-tracing" ,rust-tracing-0.1) + ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3) + ("rust-url" ,rust-url-2) + ("rust-uuid" ,rust-uuid-1) + ("rust-zbar-rust" ,rust-zbar-rust-0.0) + ("rust-zeroize" ,rust-zeroize-1)) + #:imported-modules `(,@%glib-or-gtk-build-system-modules ,@%cargo-build-system-modules) + #:modules `((guix build cargo-build-system) + ((guix build glib-or-gtk-build-system) + #:prefix glib-or-gtk:) + (guix build utils)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-in-files + (lambda _ + (let ((bindir (string-append #$output "/bin")) + (localedir (string-append "\"" + #$output + "share/locale\"")) + (pkgdatadir (string-append "\"" + #$output "/share/authenticator\""))) + + (substitute* "src/config.rs.in" + (("@APP_ID@") + "\"com.belmoussaoui.Authenticator\"") + (("@PKGDATADIR@") + pkgdatadir) + (("@PROFILE@") + "\"\"") + (("@VERSION@") + (string-append "\"" + #$version "\"")) + (("@GETTEXT_PACKAGE@") + "\"authenticator\"") + (("@LOCALEDIR@") + localedir) + (("@OBJECT_PATH@") + "\"/com/belmoussaoui/Authenticator/SearchProvider\"")) + (rename-file "src/config.rs.in" "src/config.rs") + + (substitute* "data/com.belmoussaoui.Authenticator.SearchProvider.service.in" + (("@app-id@") + "com.belmoussaoui.Authenticator") + (("@bindir@") + bindir) + (("@name@") + "authenticator")) + (rename-file + "data/com.belmoussaoui.Authenticator.SearchProvider.service.in" + "data/com.belmoussaoui.Authenticator.SearchProvider.service") + + (substitute* "data/com.belmoussaoui.Authenticator.metainfo.xml.in.in" + (("@app-id@") + "com.belmoussaoui.Authenticator") + (("@gettext-package@") + "authenticator")) + (rename-file + "data/com.belmoussaoui.Authenticator.metainfo.xml.in.in" + "data/com.belmoussaoui.Authenticator.metainfo.xml") + + (substitute* "data/com.belmoussaoui.Authenticator.desktop.in.in" + (("@icon@") + "com.belmoussaoui.Authenticator")) + (rename-file + "data/com.belmoussaoui.Authenticator.desktop.in.in" + "data/com.belmoussaoui.Authenticator.desktop") + + (substitute* "data/com.belmoussaoui.Authenticator.gschema.xml.in" + (("@app-id@") + "com.belmoussaoui.Authenticator") + (("@gettext-package@") + "authenticator")) + (rename-file + "data/com.belmoussaoui.Authenticator.gschema.xml.in" + "data/com.belmoussaoui.Authenticator.gschema.xml")))) + (add-before 'build 'build-locales + (lambda _ + (for-each (lambda (po-file) + (invoke "msgfmt" "-c" "-o" + (string-append (string-drop-right + po-file 3) ".mo") + po-file)) + (find-files "po" "\\.po")))) + (add-before 'build-locales 'build-resources + (lambda _ + (with-directory-excursion "data" + (invoke "glib-compile-resources" "--generate" + "resources.gresource.xml")))) + (add-before 'install 'install-extra + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (here (getcwd)) + (source (assoc-ref inputs "source")) + (share (string-append out "/share")) + (hicolor (string-append share "/icons/hicolor"))) + (mkdir-p hicolor) + (with-directory-excursion hicolor + (mkdir-p "scalable/apps") + (install-file (string-append source + "/data/icons/com.belmoussaoui.Authenticator.svg") + "scalable/apps") + (mkdir-p "symbolic/apps") + (install-file (string-append source + "/data/icons/com.belmoussaoui.Authenticator-symbolic.svg") + "symbolic/apps")) + (with-directory-excursion share + (mkdir-p "applications") + (with-directory-excursion "applications" + (install-file (string-append here + "/data/com.belmoussaoui.Authenticator.desktop") + ".")) + (mkdir-p "authenticator") + (with-directory-excursion "authenticator" + (copy-file (string-append here + "/data/resources.gresource") + "authenticator.gresource")) + (mkdir-p "gnome-shell/search-providers") + (with-directory-excursion "gnome-shell/search-providers" + (install-file (string-append here + "/data/com.belmoussaoui.Authenticator.search-provider.ini") + ".")) + (mkdir-p "locale") + (with-directory-excursion "locale" + (for-each (lambda (mo-file) + (define mo-dir + (string-append (string-drop-right (basename + mo-file) + 3) + "/LC_MESSAGES")) + (mkdir-p mo-dir) + (copy-file mo-file + (string-append mo-dir + "/authenticator.mo"))) + (find-files (string-append here "/po") + "\\.mo"))) + (mkdir-p "metainfo") + (with-directory-excursion "metainfo" + (install-file (string-append here + "/data/com.belmoussaoui.Authenticator.metainfo.xml") + ".")) + (mkdir-p "glib-2.0/schemas") + (with-directory-excursion "glib-2.0/schemas" + (install-file (string-append here + "/data/com.belmoussaoui.Authenticator.gschema.xml") + ".")) + (mkdir-p "dbus-1/services") + (with-directory-excursion "dbus-1/services" + (install-file (string-append here + "/data/com.belmoussaoui.Authenticator.SearchProvider.service") + ".")))))) + (add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file + (assoc-ref glib-or-gtk:%standard-phases + 'generate-gdk-pixbuf-loaders-cache-file)) + (add-after 'install 'glib-or-gtk-compile-schemas + (assoc-ref glib-or-gtk:%standard-phases + 'glib-or-gtk-compile-schemas)) + (add-after 'install 'glib-or-gtk-wrap + (assoc-ref glib-or-gtk:%standard-phases + 'glib-or-gtk-wrap)) + (add-after 'glib-or-gtk-wrap 'wrap-extra-paths + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gst-plugins-path (getenv + "GST_PLUGIN_SYSTEM_PATH"))) + (for-each (lambda (prog) + (wrap-program (string-append out "/bin/" + prog) + `("GST_PLUGIN_SYSTEM_PATH" ":" suffix + (,gst-plugins-path)))) + '("authenticator")))))))) + (native-inputs (list clang + gnu-gettext + `(,glib "bin") ;for glib-compile-schemas + libxml2 ;for xmllint + pkg-config)) + (inputs (list glib + gstreamer + gst-plugins-base + gst-plugins-bad + gtk + libadwaita + openssl + pango + sqlite + zbar)) + (home-page "https://apps.gnome.org/Authenticator") + (synopsis "Generate two-factor codes") + (description + "Simple application for generating Two-Factor Authentication +Codes: + +It features: + +@itemize +@item Time-based/Counter-based/Steam methods support +@item SHA-1/SHA-256/SHA-512 algorithms support +@item QR code scanner using a camera or from a screenshot +@item Lock the application with a password +@item Beautiful UI +@item GNOME Shell search provider +@item Backup/Restore from/into known applications like FreeOTP+, +Aegis (encrypted / plain-text), andOTP, Google Authenticator +@end itemize") + (license license:gpl3+))) + + (define-public rust-xremap (package (name "rust-xremap") -- 2.47.0