From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6HKXAy7cw1/AZAAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 17:36:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YID9Oi3cw1/eHQAAB5/wlQ (envelope-from ) for ; Sun, 29 Nov 2020 17:36:45 +0000 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 82E65940481 for ; Sun, 29 Nov 2020 17:36:45 +0000 (UTC) Received: from localhost ([::1]:42976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjQcu-0002cU-Gz for larch@yhetil.org; Sun, 29 Nov 2020 12:36:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjQcG-0002Fs-2P for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjQcF-0008EB-3q for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjQcF-0003mV-1i for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44926] [PATCH v2 02/15] gnu: packages: dart.scm: New file. Resent-From: nixo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Nov 2020 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44926 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 44926@debbugs.gnu.org Cc: nixo Received: via spool by 44926-submit@debbugs.gnu.org id=B44926.160667134114399 (code B ref 44926); Sun, 29 Nov 2020 17:36:02 +0000 Received: (at 44926) by debbugs.gnu.org; 29 Nov 2020 17:35:41 +0000 Received: from localhost ([127.0.0.1]:52442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQbp-0003k6-IR for submit@debbugs.gnu.org; Sun, 29 Nov 2020 12:35:41 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:45555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQbk-0003jq-J0 for 44926@debbugs.gnu.org; Sun, 29 Nov 2020 12:35:37 -0500 Received: by mail-wr1-f47.google.com with SMTP id t4so11991000wrr.12 for <44926@debbugs.gnu.org>; Sun, 29 Nov 2020 09:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yYsJDdo+e4jbHk+C5RFm8Q89MjvJT0e4RHpi290hMkU=; b=sh2FQxZ4LdG3wVFLBr8PM2e4583Gnd4qw1bKcCeqW6tKOolad7uEu/O9ZAheSSq3Wv v60Zi6cLW2hGdxaBo2wR+3o+zAYYSVFGaBG2uQXBtcXs00FkuYaHit/rgHIXxkRH1iZH 0LdGiHjJmcfp1PyBoY0T/9wbdLD76GoCRMLd5CtjIhwcxFuYNE5LoyHuNKaERueYmoL2 Kt07NO1FREBN67CdVso+cw4kTS7FnXWAk2i3/wegTpLsffTEKrWxDWm3B6AW2QZaN8Ud GGnXco1dNYyuvPhEBq4NJwSPMMgdxy7n3hsEcRYu4VkKOUzVhLFXG/au0RyMN9Vylbwg n12g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yYsJDdo+e4jbHk+C5RFm8Q89MjvJT0e4RHpi290hMkU=; b=QvfdsnQSWsR8ucYwZKp6kaVef+Yq9nJVUVpRnj5kxyL5PTCN8fhe3Kfw+zh/XKPiUk R4usQjGYNVXH+vtAHfCVI+OuTyPt+CZ6Q6AkZ6d9hkRCi1bqMT4qi7adl0R+1HLTi65/ ghn8+1zJhegeP4Kc/9//JhJvwm6NOPGFTZ78LFMH9lemxkt9Bt9XF8nici+5jS7R57qZ LFLAPL6pTwxKPddxj1qmUfMjt5zWTECl5Hqs9qgCECayNz2DNsXnquq8S21dnxa0uFF5 34hpV9qmF84zU8P2aBYNhnFnIPxDWSNQN09upEc/AEiyoZBGJD6lfDPN8cWztbgMTmCW dK8g== X-Gm-Message-State: AOAM531mYcOJdwvt9R/+3Ngk8Tici2yHaggm5TzfXWYQvlcQnlr3fGfX c1QrZkLTF5KR9LB/mwTIsS01E5hGj60= X-Google-Smtp-Source: ABdhPJx9U0frwB+FdVW/nk4c3e9R7FEpV8Oe0LyWq4uvMDnL3ApT5z9GkEswVkNsIj/7hAlqXJtgeA== X-Received: by 2002:a5d:4141:: with SMTP id c1mr17690283wrq.80.1606671326781; Sun, 29 Nov 2020 09:35:26 -0800 (PST) Received: from localhost.localdomain (host-79-54-131-134.retail.telecomitalia.it. [79.54.131.134]) by smtp.gmail.com with ESMTPSA id c9sm22613231wrp.73.2020.11.29.09.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 09:35:26 -0800 (PST) From: nixo X-Google-Original-From: nixo Date: Sun, 29 Nov 2020 18:34:01 +0100 Message-Id: <20201129173414.8984-2-nicolo@nixo.xyz> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201129173414.8984-1-nicolo@nixo.xyz> References: <20201129173414.8984-1-nicolo@nixo.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Spam-Score: -1.18 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=sh2FQxZ4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-TUID: AnHEt3ARyjTC gnu/local.mk: Add it. gnu/packages/dart.scm (dart-pkg): New function. --- gnu/local.mk | 1 + gnu/packages/dart.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 gnu/packages/dart.scm diff --git a/gnu/local.mk b/gnu/local.mk index 14b626c600..359015415c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -156,6 +156,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/cvassistant.scm \ %D%/packages/cybersecurity.scm \ %D%/packages/cyrus-sasl.scm \ + %D%/packages/dart.scm \ %D%/packages/databases.scm \ %D%/packages/datamash.scm \ %D%/packages/datastructures.scm \ diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm new file mode 100644 index 0000000000..f8af8696bc --- /dev/null +++ b/gnu/packages/dart.scm @@ -0,0 +1,41 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Nicolò Balzarotti +;;; +;;; 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 dart) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build utils) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix utils)) + +(define* (dart-pkg name tag hash #:optional + (url (string-append + "https://github.com/dart-lang/" + (string-replace-substring name "-" "_")))) + (origin + (method git-fetch) + (uri (git-reference + (url url) + (commit tag))) + (file-name + (git-file-name name + (if (> (string-length tag) 9) + (string-take tag 9) + tag))) + (sha256 (base32 hash)))) + -- 2.29.2