From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mKnoNEnGtGIaKwEAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 22:00:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EJ69NEnGtGIYawEA9RJhRA (envelope-from ) for ; Thu, 23 Jun 2022 22:00:09 +0200 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 80F5A1F77B for ; Thu, 23 Jun 2022 22:00:09 +0200 (CEST) Received: from localhost ([::1]:42120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4Szo-00028o-3w for larch@yhetil.org; Thu, 23 Jun 2022 16:00:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Szi-000272-Eq for guix-patches@gnu.org; Thu, 23 Jun 2022 16:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4Szi-0000BB-5g for guix-patches@gnu.org; Thu, 23 Jun 2022 16:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4Szi-0005N1-4V for guix-patches@gnu.org; Thu, 23 Jun 2022 16:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56175] [PATCH 2/4] gnu: Add gdmd. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jun 2022 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56175@debbugs.gnu.org Cc: Efraim Flashner , Esther Flashner Received: via spool by 56175-submit@debbugs.gnu.org id=B56175.165601437720569 (code B ref 56175); Thu, 23 Jun 2022 20:00:02 +0000 Received: (at 56175) by debbugs.gnu.org; 23 Jun 2022 19:59:37 +0000 Received: from localhost ([127.0.0.1]:39967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4SzJ-0005Lh-AM for submit@debbugs.gnu.org; Thu, 23 Jun 2022 15:59:37 -0400 Received: from flashner.co.il ([178.62.234.194]:57682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Sz4-0005LF-Gl for 56175@debbugs.gnu.org; Thu, 23 Jun 2022 15:59:36 -0400 Received: from localhost (unknown [141.226.14.191]) by flashner.co.il (Postfix) with ESMTPSA id 8E2694016D; Thu, 23 Jun 2022 19:59:16 +0000 (UTC) From: Efraim Flashner Date: Thu, 23 Jun 2022 22:56:50 +0300 Message-Id: <05854af00eb9719e90a0f326d8d7ad53de19c110.1656013840.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656014409; h=from:from:sender:sender: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; bh=ZvDferSd7rFbVjAgNA9OZ6avcvOYxgBWvHWMUGZqp2Y=; b=L1B4qWOw8IIdHRSjndkkncXq9oa9q2thzgT+tzpmDgM3GS5KEjAjObbw1nUugmMzIEkx2H ooAmYREKjnOW77wUwt3CtNUyveOJb0dTsIjtqmJtDcvFJ2NEWcTCTZVdvWQRS+Ft1uWUPU eOEdcimW3p9SaMtpXM87ue1lqc+Y4tp0m1Nn81RpJtYej0zmwu+oceF3VYHMfdfIEj3Sx3 UKF8zhQmsmoHoKJhu+EQFz3oLfCnPvzxKCCAS20P2XT4vevL5PHLS1hYj63i/fyCp3XnPW Khlrxansd3ieiqzxSvg+SvuYRm+uZ8jXl9q+uvOJV5Zz9oa0089p6beceDYfqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656014409; a=rsa-sha256; cv=none; b=kxWHcVskB7JKEBMAJbcgH6qVR/6/qr757AjvlO/VWcr4EgTkncAzSIDHN0N71cxV4rt3dd fz+zKJEtOknVItTgiKTdoac9huoWRPuUeqBFY38l3fc/BFJxAy6d8/JlcqcBy9/qy4zZ/N pWh/sjKxRO3hB9j2OST4D/vWN6PZPBnH0V0a+7fIu2icpONajlKdY+UmRBQ5q1o3+5mP5v p43/q+Fub2SC7y8MbQgZ5MkxQwaMSU4Ck0cTu9tNkNWSc9R+bJ8MqyayKvcsCnS5d0weA3 s/jM9C33D5GKURSDeaUdmuTl7RXVWP/7LyIHTUV7kYreL8AjRks9BaAV88Cp2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: 80F5A1F77B X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: B5vJn9lyEoSO From: Esther Flashner * gnu/packages/dlang.scm (gdmd): New variable. Co-authored-by: Efraim Flashner --- gnu/packages/dlang.scm | 45 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 403fcbbd6b..43f24d4033 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -5,8 +5,9 @@ ;;; Copyright © 2017 Ricardo Wurmus ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2020 Guy Fleury Iteriteka -;;; Copyright © 2021 Efraim Flashner +;;; Copyright © 2021, 2022 Efraim Flashner ;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2022 Esther Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,19 +29,23 @@ (define-module (gnu packages dlang) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module ((guix build utils) #:hide (delete which)) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages curl) + #:use-module (gnu packages gcc) #:use-module (gnu packages gdb) #:use-module (gnu packages libedit) #:use-module (gnu packages llvm) #:use-module (gnu packages ninja) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) @@ -86,6 +91,44 @@ (define-public rdmd and freshness without requiring additional information from the user.") (license license:boost1.0))) +(define-public gdmd + (let ((commit "ff2c97a47408fb71c18a2d453294d18808a97cc5") + (revision "1")) + (package + (name "gdmd") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/D-Programming-GDC/gdmd") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pd70clk70069xcjysaas7zszzmigrcw1zl2xxv8kzdg7y7xrzvm")))) + (build-system copy-build-system) + (arguments + (list + #:install-plan + #~'(("dmd-script" "bin/gdmd") + ("dmd-script.1" "share/man/man1/gdmd.1")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'adjust-gdc-location + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "dmd-script" + (("my \\$gdc_dir.*") + (string-append "my $gdc_dir = \"" + (dirname (search-input-file inputs "/bin/gdc")) + "\";\n")))))))) + (inputs + (list gdc-10 perl)) + (home-page "https://github.com/D-Programming-GDC/gdmd") + (synopsis "DMD-like wrapper for GDC") + (description "This package provides a DMD-like wrapper for the +@acronym{GNU D Compiler,GDC}.") + (license license:gpl3+)))) + ;;; The 0.17.6 version is the last release to support being bootstrapped ;;; without a D compiler (requiring only a C++ compiler). ;;; TODO: Bootstrap ldc from GDC (the D frontend for GCC). -- 2.36.1