From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +HtHJrTmcWUhrgAA9RJhRA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 16:37:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +HtHJrTmcWUhrgAA9RJhRA (envelope-from ) for ; Thu, 07 Dec 2023 16:37:24 +0100 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 4FCD265AA8 for ; Thu, 7 Dec 2023 16:37:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cTHqS171; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701963444; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CrkYmMAgppOc0k4t81XhJWZDLWrEIOdg+mmmHPmY5rA=; b=IbBUskAL0acNB8RZ6qbuLXVasND/+ISBG0/ghhGSJ+7IU6pN3okMS7iMkj07/Y8sWYlfcE bCBXNLfZZkaTKgvl3NtALwVailERyFdkFE3TmYxjS5Wx0FLGV/QVVhd16gpRHnQfCbG0ES HeVv9s1Wv5oprrn0JcPESfwxKtC2KdwCMhNfNKT+8vO6AobuogcFWIdL+ikvRq4hjwe/+n QNv/Lk1iUnjk0AlPkZ7xId+QqKcdemU0cgaOKLPxCoYU3DThJD7tsU+Hs8VRb9ywHqa/mg BllpBfEQD4BXoUt8k6oY58OKrWUWu5ANzIgLN0aBLuKuXs0QCe6Pcc15r3BVtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cTHqS171; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701963444; a=rsa-sha256; cv=none; b=F44a+hkijtHwa4l3pnVt7FOi5roPCFC04UKuAJVJw5RElUKfcJ0XEUbrRyxDsRzmHFYFhm gk9yilBVeDoKT7yg2SWoklYg0gN4kY+jAba+0ug14CSJ8f6BFUXW61D+ML17W8iO5DBg+z /SNNbeZUjdDd9VxcuPPUlwD3WvXHoSxtfVrQELXJRLEKwERzMjV1+8OYlPGrU/8s82TZiQ MZp/9lZIT9ZjQiC+ZSWnC8b/UtlyEutcAVLWwinrPGdoybgPluKEVgbvUN6f9l8dv4YfkY +ahCl3+W7l2CbUQDpk5C8jbJmNx6ShMhd5+Lu0dV28AMIOL0niH5ZoDaPhJweg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBGQp-0005WM-SA; Thu, 07 Dec 2023 10:36: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 1rBGQo-0005Vp-A1 for guix-patches@gnu.org; Thu, 07 Dec 2023 10:36:54 -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 1rBGQl-0005S5-2B for guix-patches@gnu.org; Thu, 07 Dec 2023 10:36:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBGQw-00018C-6D for guix-patches@gnu.org; Thu, 07 Dec 2023 10:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67692] [PATCH] gnu: Add trash-d. Resent-From: Hugo Nobrega Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67692 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67692@debbugs.gnu.org Cc: Hugo Nobrega X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17019633674281 (code B ref -1); Thu, 07 Dec 2023 15:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 15:36:07 +0000 Received: from localhost ([127.0.0.1]:42792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBGQ2-00016z-BM for submit@debbugs.gnu.org; Thu, 07 Dec 2023 10:36:06 -0500 Received: from lists.gnu.org ([2001:470:142::17]:34038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBGPx-00016Q-69 for submit@debbugs.gnu.org; Thu, 07 Dec 2023 10:36:05 -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 1rBGPe-0005G0-RB for guix-patches@gnu.org; Thu, 07 Dec 2023 10:35:42 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBGPc-0005L1-7T for guix-patches@gnu.org; Thu, 07 Dec 2023 10:35:41 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d06fffdb65so7856365ad.2 for ; Thu, 07 Dec 2023 07:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701963337; x=1702568137; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CrkYmMAgppOc0k4t81XhJWZDLWrEIOdg+mmmHPmY5rA=; b=cTHqS171stdpr++21uecOecjm98YBWdZM5MQdtVUejImUB4CQcoyEiwGTkJREjqHNP YoMzPUg8g+io6bJWpd9cJ4TjcxYwWTfxSAiD0tDtND9FxmzlkTVwH4HqdY81AeAqg5ZR +nNXePcWhDgkAXYoo/ruqIjr3SQCF/oAsq0BJd9ANhzCdwSkW4xVTBplPhFMSW5N7Ezk +Wv6DlvO+OkDMK3FTdjB4sLJJ1x2FQg0cJO4ov7VqXedrGwordqlug5ihtsGA9n3ZHIi 92nCbiBF263npBZPBpnwSguPKiRKgn6mFVVIV+90Z8H542R0og6pQofD9o/NyY5zA9hd N/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701963337; x=1702568137; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CrkYmMAgppOc0k4t81XhJWZDLWrEIOdg+mmmHPmY5rA=; b=vGC3NEfoo7vouYoRc/wMf5BRZB93c4sfpcf2po+D9olPI5kwfyhBgRYpbqD5ze0JiD MWs+p+wVyikxspcUvmCJm5RucVUZ/e+QdGr+d7nyoSZFsRNh5EGzJNMkUtwusaVr+Rdh PsSteFSjrNcy5puuoQhnQaQnJrRehMHdO+k736SrWLup+omEceYGVyG4PjcgS/G3j9tB tszFzNnKEXu02oySctiIzPBsCv6tnwNoAyh+q/wPClTpWxYGthd6hhSFTEkykZ5oj303 vM4YJwg825eLDrfHj4EBwk3YmV2m/vb5yym1M7Nwzr2uVmwro0iFpZmG7318q0FyTzEe zVNw== X-Gm-Message-State: AOJu0YzeAC7eR1A/jSPt82YL3pS8IN/kuXB+Snte/VzliiKP+foANJaz CEbRmxDhMDpnju349wUQmTUMkaY6Dp4YmQ== X-Google-Smtp-Source: AGHT+IH6Nlxx8wS+kvZypQvo8d8zqf3fn2Wx+ChaQrjozaQdN+2km908NHbK9lpuJP7StBYPcAaqoA== X-Received: by 2002:a17:902:d490:b0:1d0:7570:726d with SMTP id c16-20020a170902d49000b001d07570726dmr2450473plg.91.1701963336967; Thu, 07 Dec 2023 07:35:36 -0800 (PST) Received: from localhost.localdomain ([2804:14d:5c57:a658::1bdf]) by smtp.gmail.com with ESMTPSA id x5-20020a170902ea8500b001d08e080042sm1601332plb.43.2023.12.07.07.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:35:36 -0800 (PST) From: Hugo Nobrega Date: Thu, 7 Dec 2023 12:34:40 -0300 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=hugonobrega@gmail.com; helo=mail-pl1-x631.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.35 X-Spam-Score: 4.35 X-Migadu-Queue-Id: 4FCD265AA8 X-Migadu-Scanner: mx12.migadu.com X-TUID: weKcSfIEIuhv Change-Id: Ib216ec159ef256b79b3fba740ad3fc1575f5ecbc --- gnu/packages/dlang-xyz.scm | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 gnu/packages/dlang-xyz.scm diff --git a/gnu/packages/dlang-xyz.scm b/gnu/packages/dlang-xyz.scm new file mode 100644 index 0000000000..14015f8bc2 --- /dev/null +++ b/gnu/packages/dlang-xyz.scm @@ -0,0 +1,75 @@ +;;; GNU Guix --- Functional package management for GNU +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages dlang-xyz) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages commencement) + #:use-module (gnu packages compression) + #:use-module (gnu packages curl) + #:use-module (gnu packages dlang) + #:use-module (gnu packages groff) + #:use-module (guix build-system dub) + #:use-module (guix git-download) + #:use-module (guix packages)) + +(define-public trash-d + (package + (name "trash-d") + (version "19") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rushsteve1/trash-d.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 (base32 "1ljj1fqlby15iaar4pzni3h2hc7ncj2gads26bz2cala0inl3ywf")))) + (build-system dub-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'set-env-cc + (lambda _ + (setenv "CC" "gcc"))) + (add-before 'build 'touch-dub-json + (lambda _ + (mkdir-p ".dub") + (open-output-file ".dub/dub.json"))) + (add-before 'build 'patch-build-dub + (lambda _ + (substitute* "dub.json" + (("\"dflags-linux-ldc\": \\[\"-static\"\\]") + "\"dflags-ldc\": []")))) + (add-before 'install 'make-man-page + (lambda _ + (invoke "ronn" "--roff" "MANUAL.md") + (invoke "mv" "MANUAL.1" "trash.1") + (invoke "gzip" "-9" "trash.1"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "build/trash" (string-append (assoc-ref outputs "out") + "/bin")) + (install-file "trash.1.gz" (string-append (assoc-ref outputs "out") + "/share/man/man1"))))))) + (native-inputs + (list ld-gold-wrapper ronn-ng groff-minimal gzip)) + (home-page "https://github.com/rushsteve1/trash-d") + (synopsis "Delete files using the FreeDesktop trash bin") + (description "A near drop-in replacement for rm that uses the FreeDesktop +trash bin. trash-d is written in the D programming language using only D's +Phobos standard library.") + (license license:expat))) base-commit: 06f25a9a85be1bbe7a709e58ce41c1a834e5f1ae -- 2.41.0