V0.0.3 Nodejs support.
This commit is contained in:
parent
9c4c35fdd6
commit
54f494163a
17 changed files with 1871 additions and 484 deletions
|
|
@ -1,6 +1,6 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; raw.scm
|
||||
;; Copyright (C) 2025 Cor Legemaat <cor@cor.za.net>
|
||||
;; Copyright (C) 2025, 2026 Cor Legemaat <cor@cor.za.net>
|
||||
;;
|
||||
;; This file is part of ebuild-autogen: you can redistribute it and/or modify it
|
||||
;; under the terms of the GNU Affero General Public License as published by the
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
(define-module (ebuild fetchers raw)
|
||||
#:use-module (ebuild defs)
|
||||
#:use-module (ebuild utils)
|
||||
#:use-module (ebuild semver)
|
||||
#:use-module (curl)
|
||||
#:use-module (rx irregex)
|
||||
#:use-module (ice-9 pretty-print)
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
(let ((version (version-alter (extract-version release))))
|
||||
(if (version-filter version)
|
||||
(list (cons "version" version)
|
||||
(cons "version-values" (semver->comps version))
|
||||
(cons "assets"
|
||||
(map
|
||||
(lambda (type)
|
||||
|
|
@ -104,13 +106,12 @@
|
|||
(lambda (release type)
|
||||
""
|
||||
(let* ((my-file-data
|
||||
(car ((dql (select (filter (select (parm-val "assets"))
|
||||
(where (lambda (x)
|
||||
(string=? x type))
|
||||
"type"))
|
||||
(parm "uri")
|
||||
(parm "name")))
|
||||
release)))
|
||||
(car ((dql (select (filter (where (lambda (x)
|
||||
(string=? x type))
|
||||
"type"))
|
||||
(parm "uri")
|
||||
(parm "name")))
|
||||
(assoc-ref release "assets"))))
|
||||
(uri (assoc-ref my-file-data "uri"))
|
||||
(name (assoc-ref my-file-data "name"))
|
||||
(file-path (string-append (assoc-ref release 'cache-path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue