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 eF2hJJXYPmU1BgEA9RJhRA:P1 (envelope-from ) for ; Sun, 29 Oct 2023 23:11:33 +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 eF2hJJXYPmU1BgEA9RJhRA (envelope-from ) for ; Sun, 29 Oct 2023 23:11:33 +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 36D7224833 for ; Sun, 29 Oct 2023 23:11:33 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YEVyjRvf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698617493; a=rsa-sha256; cv=none; b=owfW63CbSbQMyNbLgKMeyyM/wPX7zXAocEV/X/vTJORQGr2QYKgNeT5ZqU8b0nJ0jw0NBs cqHqepBoBn72EA83aYl58bnRlBf0Mj5GpOjiZjYUPyX+VMLptTmyms2xoQ7PwhpBgWDEr4 RJGw2R4BlepTmWsblq4tdYLL3vU9t5pQuFWCXf88IViP1mKeqtIqRo7X9U59LYok1RGXw+ vL1ejCT9qgHoEnZFW+WphyKtvrwjtxrMLS6cjEaUoY4oykIU2fsRdApEg3hGMOUqSNEoms lkorXPvVF4y0VfcQD2NNfnggfYIkgE5aVVhOtxlwRKb/Np4Z3HwdedDEehZ++w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YEVyjRvf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698617493; 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:dkim-signature; bh=p8J/d8q28Ei+CLjwdMCuXvL82ixgsEAm/dgFtg1Jviw=; b=WVuxDy99M/hq2OMkrd7Bjp7O1Zi8p0xIs8Vv8XUPuXWbdirPEfOe6S5tglchFzU0YVktYg zX0DwVq9KAC9i5XWuIXlX89Ut5F3C0ctnPZDYSQR11N2Kx4g1fkwtIfcHt5PybPFO28FNv /KGcE0hC2pzYCsZzalLLAMQwfxqzIwH0pjwqRoOhCYqnP+ed9CIGiPJd2YVOVSehIOoWtX f17zvI0EjqM0kH8iGLh8qPPP4MbNoR01VZUwguY5GkUXfHT68TRqm+G8gTURlxkjDOI6LJ 0GEvMEWNnoPZojyl8zusA7ODh6iwQ9OgJGOBGcLCkqYsrbVULSVxGSAzlC8j9g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxDzk-00065K-HM; Sun, 29 Oct 2023 18:10:56 -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 1qxDzg-0005zH-W8 for guix-patches@gnu.org; Sun, 29 Oct 2023 18:10:53 -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 1qxDze-0000Zy-Mb for guix-patches@gnu.org; Sun, 29 Oct 2023 18:10:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxE0B-0005ch-ED for guix-patches@gnu.org; Sun, 29 Oct 2023 18:11:23 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66827] [PATCH 28/67] gnu: go-github-com-bep-golibsass: Move to (gnu packages golang-web). Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Oct 2023 22:11:23 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66827 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66827@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 66827-submit@debbugs.gnu.org id=B66827.169861747521462 (code B ref 66827); Sun, 29 Oct 2023 22:11:23 +0000 Received: (at 66827) by debbugs.gnu.org; 29 Oct 2023 22:11:15 +0000 Received: from localhost ([127.0.0.1]:43828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxE01-0005ZW-Go for submit@debbugs.gnu.org; Sun, 29 Oct 2023 18:11:15 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:58485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxDzc-0005Qa-5D for 66827@debbugs.gnu.org; Sun, 29 Oct 2023 18:10:49 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40906fc54fdso30475615e9.0 for <66827@debbugs.gnu.org>; Sun, 29 Oct 2023 15:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698617409; x=1699222209; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p8J/d8q28Ei+CLjwdMCuXvL82ixgsEAm/dgFtg1Jviw=; b=YEVyjRvfN1WHRkkhoNyLsCVek05ToJDB5nVqhqo8ut+iqwIEJx3Sqn67rhGb9X36Cp FRnrcjV8YhWF9COsNC+Nqd9aSSKZ0y+0xXqlUFeTKMZR9xa8djO6s4Gn1S2CeRQ9lOjr R0g3dG+K9TI1wMZ8ILsux4q4hafhxHUOIpPX5vOVXQ97GMOSuKRuH62NM8WhiK3B8ub8 qLsYQqJawR2IJK72h4Bq79y+7nOGQQN21myfMvVx1LU5wFqLntMBwwlSAr5tzX53VbPI beiFq7RGBt7WhMJ4EvkUooJuvt2czV5hrM5b/mDLtQdSbT9i8fpCzFRYshfxBSK4xJtN zW7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698617409; x=1699222209; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p8J/d8q28Ei+CLjwdMCuXvL82ixgsEAm/dgFtg1Jviw=; b=Nc2gJIfVlAiWSmeuhq8D/0W/TVgIvGlCUnmuPt1lCvF97tjrJC+P25nl9wj5NEhel1 XwLOFCLW71LVZpChUoLnTuf0SFQToam5RX2osGLeE5AfShpGQO4PNp6toktDZ/STnkWr h87ylt1Uokp99sHHb7KGkLqkScyhBn5z9x1CY8A7NgrOwPaZ8ABmS08jOHvyRFrGF90u lwPxMuIAuc6T1EZA5b+aQeCLzJqkUMPXSi//TLn614ceh+h1joZbYIdoHfHqdSlRcTIW twrr81xDuRFoVSrP7SC5sxZvvgqtDFeURthrUGQk3gPjRBNXBxlMLAIB38Tu632e5AV9 XFww== X-Gm-Message-State: AOJu0YyHFhz4EhNNZ757vdU8EvjzzjxwF0x5bEVsyFoSxmTDx8fqWJD3 Z0I9d8kKjvSRt+Q5f24zGPNW8qUC8Ph+Sg== X-Google-Smtp-Source: AGHT+IHX6nnGL1VwSwu4k6kDSAUC1dHEm6pRlvBJE72M2CtyvJ/8XjKp09ZI0c0BC+Bx/kXWl0OObQ== X-Received: by 2002:a05:600c:310d:b0:405:3dee:3515 with SMTP id g13-20020a05600c310d00b004053dee3515mr7394972wmo.27.1698617409513; Sun, 29 Oct 2023 15:10:09 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id 3-20020a05600c234300b004063cced50bsm7527511wmq.23.2023.10.29.15.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:10:09 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 30 Oct 2023 01:08:42 +0000 Message-ID: <6bfd705f1a38f5307ed59b4b66da5d4e15fdccac.1698627461.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 36D7224833 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -0.00 X-Spam-Score: -0.00 X-TUID: 1XiHmJDTzA2/ * gnu/packages/golang.scm (go-github-com-bep-golibsass): Move from here... * gnu/packages/golang-web.scm: ...to here. Change-Id: I514ae05a8c04eea2084cbcb7e4d84c83b6b71bb4 --- gnu/packages/golang-web.scm | 61 ++++++++++++++++++++++++++++++++++++- gnu/packages/golang.scm | 58 ----------------------------------- 2 files changed, 60 insertions(+), 59 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9aa3fe8233..72f2a7d84c 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2020 Oleg Pykhalov +;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021, 2022 Efraim Flashner ;;; Copyright © 2022 Giacomo Leidi @@ -34,7 +35,8 @@ (define-module (gnu packages golang-web) #:use-module (guix git-download) #:use-module (gnu packages) #:use-module (gnu packages golang) - #:use-module (gnu packages golang-check)) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages web)) ;;; Commentary: ;;; @@ -95,6 +97,63 @@ (define-public go-github-com-aymerick-douceur (description "This package provides a CSS parser and inliner.") (license license:expat))) +(define-public go-github-com-bep-golibsass + (package + (name "go-github-com-bep-golibsass") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bep/golibsass") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xk3m2ynbydzx87dz573ihwc4ryq0r545vz937szz175ivgfrhh3")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file-recursively "libsass_src") + #t)))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/bep/golibsass/libsass" + #:unpack-path "github.com/bep/golibsass" + ;; The dev build tag modifies the build to link to system libsass + ;; instead of including the bundled one (which we remove.) + ;; https://github.com/bep/golibsass/blob/v0.7.0/internal/libsass/a__cgo_dev.go + #:build-flags '("-tags" "dev") + #:phases + (modify-phases %standard-phases + (add-before 'build 'generate-bindings + ;; Generate bindings for system libsass, replacing the + ;; pre-generated bindings. + (lambda* (#:key inputs unpack-path #:allow-other-keys) + (mkdir-p (string-append "src/" unpack-path "/internal/libsass")) + (let ((libsass-src (string-append (assoc-ref inputs "libsass-src") "/src"))) + (substitute* (string-append "src/" unpack-path "/gen/main.go") + (("filepath.Join\\(rootDir, \"libsass_src\", \"src\"\\)") + (string-append "\"" libsass-src "\"")) + (("../../libsass_src/src/") + libsass-src))) + (invoke "go" "generate" (string-append unpack-path "/gen")) + #t)) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (if tests? + (invoke "go" "test" import-path "-tags" "dev")) + #t))))) + (propagated-inputs + (list libsass)) + (native-inputs + `(("go-github-com-frankban-quicktest" ,go-github-com-frankban-quicktest) + ("libsass-src" ,(package-source libsass)))) + (home-page "https://github.com/bep/golibsass") + (synopsis "Easy to use Go bindings for LibSass") + (description + "This package provides SCSS compiler support for Go applications.") + (license license:expat))) + (define-public go-github-com-chris-ramon-douceur (package (name "go-github-com-chris-ramon-douceur") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8e6cdf3a16..27548f3b8e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10245,64 +10245,6 @@ (define-public go-github-com-gologme-log additions.") (license license:bsd-3)))) -(define-public go-github-com-bep-golibsass - (package - (name "go-github-com-bep-golibsass") - (version "0.7.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bep/golibsass") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0xk3m2ynbydzx87dz573ihwc4ryq0r545vz937szz175ivgfrhh3")) - (modules '((guix build utils))) - (snippet - '(begin - (delete-file-recursively "libsass_src") - #t)))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/bep/golibsass/libsass" - #:unpack-path "github.com/bep/golibsass" - ;; The dev build tag modifies the build to link to system libsass - ;; instead of including the bundled one (which we remove.) - ;; https://github.com/bep/golibsass/blob/v0.7.0/internal/libsass/a__cgo_dev.go - #:build-flags '("-tags" "dev") - #:phases - (modify-phases %standard-phases - (add-before 'build 'generate-bindings - ;; Generate bindings for system libsass, replacing the - ;; pre-generated bindings. - (lambda* (#:key inputs unpack-path #:allow-other-keys) - (mkdir-p (string-append "src/" unpack-path "/internal/libsass")) - (let ((libsass-src (string-append (assoc-ref inputs "libsass-src") "/src"))) - (substitute* (string-append "src/" unpack-path "/gen/main.go") - (("filepath.Join\\(rootDir, \"libsass_src\", \"src\"\\)") - (string-append "\"" libsass-src "\"")) - (("../../libsass_src/src/") - libsass-src))) - (invoke "go" "generate" (string-append unpack-path "/gen")) - #t)) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (if tests? - (invoke "go" "test" import-path "-tags" "dev")) - #t))))) - (propagated-inputs - (list libsass)) - (native-inputs - `(("go-github-com-frankban-quicktest" ,go-github-com-frankban-quicktest) - ("libsass-src" ,(package-source libsass)))) - (home-page "https://github.com/bep/golibsass") - (synopsis "Easy to use Go bindings for LibSass") - (description - "This package provides SCSS compiler support for Go applications.") - (license license:expat))) - (define-public go-github-com-hashicorp-go-syslog (package (name "go-github-com-hashicorp-go-syslog") -- 2.41.0