From patchwork Sun Dec 24 19:06:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pjals--- via Guix-patches via X-Patchwork-Id: 58038 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 259B127BBE2; Sun, 24 Dec 2023 19:25:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8555627BBEA for ; Sun, 24 Dec 2023 19:25:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHU5V-0003Rm-RW; Sun, 24 Dec 2023 14:24:37 -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 1rHToO-0004ds-Ny for guix-patches@gnu.org; Sun, 24 Dec 2023 14:06:56 -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 1rHToO-0001VR-GJ for guix-patches@gnu.org; Sun, 24 Dec 2023 14:06:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHToU-0003H7-9k for guix-patches@gnu.org; Sun, 24 Dec 2023 14:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68014] [PATCH] gnu: admin: Add zzz. Resent-From: lgcoelho@disroot.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Dec 2023 19:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68014 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68014@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170344481612574 (code B ref -1); Sun, 24 Dec 2023 19:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Dec 2023 19:06:56 +0000 Received: from localhost ([127.0.0.1]:53532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHToO-0003Gh-3C for submit@debbugs.gnu.org; Sun, 24 Dec 2023 14:06:56 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHToJ-0003GS-KU for submit@debbugs.gnu.org; Sun, 24 Dec 2023 14:06:55 -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 1rHTo8-0004cp-1C for guix-patches@gnu.org; Sun, 24 Dec 2023 14:06:40 -0500 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHTo5-0001Ti-It for guix-patches@gnu.org; Sun, 24 Dec 2023 14:06:39 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 481BE41C93 for ; Sun, 24 Dec 2023 20:06:35 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xUQEglh_ygol for ; Sun, 24 Dec 2023 20:06:34 +0100 (CET) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1703444794; bh=czIqz1WPJxJiwGbIpLbLI4t3AdDLIXAtC75NqPX4Lck=; h=Date:From:To:Subject; b=F+oOfqtM7yYfDWdMjyV4DDyAh/6TUOHen9cstzSr3o6pGj9BKl/trhWWZcKy8dYfd chnrl9Wc4uWT57zVnfZ30eabokkvr11JikuJpc1HLkhhJBw4j6wbStfmFg6teX9Xv+ adQFNa53ihcpgckbrQvknIGQ2Lw5rIbl0DZYG7uN52ZxabGDp+hZr4B6yczowa1ZaQ jUVaMnOgua8OsgYOrB7E/jp7J1q0VCLUejz37shurkfg/Ks13anMRR4XxZ6cjADiSD a6oWkmXZYMb3DCNPdRHECpw3F9/QSjIhSKwSkw90xdwdq4C8NahKp7ioi8RZzfSj7L src76X2Q/0wtw== Date: Sun, 24 Dec 2023 19:06:34 +0000 Message-ID: <76c32f8ea952a9f9f6904d9a69a7bcb1@disroot.org> X-Sender: lgcoelho@disroot.org Received-SPF: pass client-ip=178.21.23.139; envelope-from=lgcoelho@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 24 Dec 2023 14:24:33 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: lgcoelho@disroot.org X-ACL-Warn: , lgcoelho--- via Guix-patches X-Patchwork-Original-From: lgcoelho--- via Guix-patches via From: pjals--- via Guix-patches via Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This patch adds zzz, a simple script to suspend or hibernate your computer. From 7931f22535d3322e83f89383e572cb6ff845dfc3 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sun, 24 Dec 2023 16:04:16 -0300 Subject: [PATCH] gnu: admin: Add zzz. --- gnu/packages/admin.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 5442714665..b168936586 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -62,6 +62,7 @@ ;;; Copyright © 2023 Bruno Victal ;;; Copyright © 2023 Tobias Kortkamp ;;; Copyright © 2023 Jaeme Sifat +;;; Copyright © 2023 Luis Guilherme Coelho ;;; ;;; This file is part of GNU Guix. ;;; @@ -79,6 +80,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages admin) + #:use-module (guix build-system copy) #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) @@ -6038,3 +6040,28 @@ (define-public bfs versions of @command{find}, including POSIX, GNU, and *BSD find.") (home-page "https://tavianator.com/projects/bfs.html") (license license:bsd-0))) + +(define-public zzz + (let ((commit "329b891426efc093ad8c65e96364427c2fb25b54") + (revision "0")) + (package + (name "zzz") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/void-linux/void-runit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lgf3maqw2j9hjzq0bkrvbl7vbh4zpppm9cdl9hvf54kbxcn2v9i")))) + (build-system copy-build-system) + (arguments + (list #:install-plan #~'(("zzz" "bin/") + ("zzz.8" "share/man/man8/")))) + (home-page "https://github.com/void-linux/void-runit") + (synopsis "Simple script to suspend or hibernate your computer.") + (description "Simple script to suspend or hibernate your computer. It +suports hooks before and after suspending.") + (license license:cc0)))) -- 2.41.0