guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit 9a09063cc9c8ad5d2d91fe400f571ddf8920c6c0
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat May 2 21:21:22 2026 +0100

    gnu: go-github-com-bep-golibsass: Refresh package style.
    
    * gnu/packages/golang-web.scm (go-github-com-bep-golibsass): Use
    G-Expressions and remvoe traling #t from lambdas.
    [arguments] <skip-build>: Use it to reflect import path as seen in
    go.mod.
    [native-inputs]: libsass. Drop labels.
    
    Change-Id: Ifd9171cfcc086ec16285345f14ea0a502922c76a
---
 gnu/packages/golang-web.scm | 67 +++++++++++++++++++++------------------------
 1 file changed, 31 insertions(+), 36 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index da2cc6689d..e32b78495c 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -3763,49 +3763,44 @@ capable of querying the current time from a remote NTP 
server as specified in
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/bep/golibsass";)
-             (commit (string-append "v" version))))
+              (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)))))
+        #~(begin
+           (delete-file-recursively "libsass_src")))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:skip-build? #t
+      #:import-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 #~(list "-tags" "dev")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'generate-bindings
+            ;; Generate bindings for system libsass, replacing the
+            ;; pre-generated bindings.
+            (lambda* (#:key import-path #:allow-other-keys)
+              (mkdir-p (string-append "src/" import-path "/internal/libsass"))
+              (let ((libsass-src
+                     (string-append #$(package-source
+                                       (this-package-input "libsass")) 
"/src/")))
+                (substitute* (string-append "src/" import-path "/gen/main.go")
+                  (("filepath.Join\\(rootDir, \"libsass_src\", \"src\"\\)")
+                   (string-append "\"" libsass-src "\""))
+                  (("../../libsass_src/src/")
+                   libsass-src)))
+              (invoke "go" "generate" (string-append import-path "/gen")))))))
+    (native-inputs
+     (list go-github-com-frankban-quicktest))
     (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

Reply via email to