From patchwork Fri Aug 18 09:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 52977 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 6615027BBEA; Fri, 18 Aug 2023 10:05:20 +0100 (BST) 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,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 C3FC427BBE2 for ; Fri, 18 Aug 2023 10:05:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWvPj-0001lc-Tm; Fri, 18 Aug 2023 05:05:03 -0400 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 1qWvPi-0001lP-Ef for guix-patches@gnu.org; Fri, 18 Aug 2023 05:05:02 -0400 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 1qWvPi-0007W2-2C for guix-patches@gnu.org; Fri, 18 Aug 2023 05:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWvPi-0004oY-Ac for guix-patches@gnu.org; Fri, 18 Aug 2023 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65351] [PATCH 7/7] gnu: Add cgit-pink. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Aug 2023 09:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "(" , Liliana Marie Prikler Cc: Arun Isaac , 65351@debbugs.gnu.org, jgart Received: via spool by 65351-submit@debbugs.gnu.org id=B65351.169234944518420 (code B ref 65351); Fri, 18 Aug 2023 09:05:02 +0000 Received: (at 65351) by debbugs.gnu.org; 18 Aug 2023 09:04:05 +0000 Received: from localhost ([127.0.0.1]:46137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWvOm-0004mv-Hu for submit@debbugs.gnu.org; Fri, 18 Aug 2023 05:04:05 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:56514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWvOj-0004lx-Oq for 65351@debbugs.gnu.org; Fri, 18 Aug 2023 05:04:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IuVHvjHqWYPFuvbzbXr9A4HSkrqXUzY76dkw30KUolo=; b=Oht6dbaO7qOV0F1Hf9PhQdZhiD Gi18wIprPBga7zp93dkSUNKfTt3LjUW3Qvu3fTd6w01uH40CVHW8KAIg1DgqxHpkhtMQXqEZWIvEY 5tRZ2olwqin7PnvBmE6x59gT+UibBfN8wF5c9Xtz9TF5zHqaaFolMJVCRD0Lh+TB6K1rpSZs1QGlc TeVQ8VhLHn9d3dO3UgMYuWP5TA2H3QKuUh9+bxtOJkQ9gMoTW/XVif4sZqzauDieKaS/lJwp2pDo8 4lUGhLrp+VMbl4QGFLouvN/17s/XclfDCzBAmrwS5G+82FS49bMRKtwXikSrgWyzi34vm2ORmi6xA fk7+YDLQ==; Received: from [192.168.2.1] (port=47464 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qWvOb-000luT-0U; Fri, 18 Aug 2023 10:03:53 +0100 From: Arun Isaac Date: Fri, 18 Aug 2023 10:03:19 +0100 Message-ID: <2f479e801734ba8be42d771ace533863de085041.1692348727.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <87v8dd8k08.fsf@disroot.org> References: <87v8dd8k08.fsf@disroot.org> MIME-Version: 1.0 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: , 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 * gnu/packages/version-control.scm (cgit-pink): New variable. --- gnu/packages/version-control.scm | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index bc2b06c0d5..00b2f66f5a 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1123,6 +1123,49 @@ (define-public cgit a built-in cache to decrease server I/O pressure.") (license license:gpl2))) +(define-public cgit-pink + (package + (inherit cgit) + (name "cgit-pink") + (version "1.4.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.causal.agency/cgit-pink") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0yp6rm60pz8pj8wrm1aglix51hhy00al86mm94ag2bifc92q23ar")))) + (arguments + (substitute-keyword-arguments (package-arguments cgit) + ((#:tests? _ #f) + (not (%current-target-system))) + ((#:make-flags make-flags '()) + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PERL_PATH=" + (search-input-file %build-inputs "/bin/perl")) + ;; It is important to set an absolute path in SHELL_PATH + ;; because it is used as the shebang of generated scripts. + (string-append "SHELL_PATH=" + (search-input-file %build-inputs "/bin/sh")))))) + (native-inputs + (modify-inputs (package-native-inputs cgit) + (replace "git-source" + ;; cgit-pink is tightly bound to git. Use GIT_VER from the Makefile, + ;; which may not match the current (package-version git). + (origin + (method url-fetch) + (uri "mirror://kernel.org/software/scm/git/git-2.36.1.tar.xz") + (sha256 + (base32 + "0w43a35mhc2qf2gjkxjlnkf2lq8g0snf34iy5gqx2678yq7llpa0")))) + (append gnu-gettext perl))) + (home-page "https://git.causal.agency/cgit-pink/about/") + (description "cgit-pink is a fast web interface for the Git SCM, using a +built-in cache to decrease server I/O pressure. cgit-pink is a fork of +cgit."))) + (define-public python-git-multimail (package (name "python-git-multimail")