mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
rosenthal: mirror-substitutes: Update to 0.0.1.
* modules/rosenthal/packages/package-management.scm (mirror-substitutes): Update to 0.0.1.
This commit is contained in:
1 file changed
+56
-60
@@ -31,63 +31,59 @@
|
|||||||
(properties '((disable-updater? . #t)))))
|
(properties '((disable-updater? . #t)))))
|
||||||
|
|
||||||
(define-public mirror-substitutes
|
(define-public mirror-substitutes
|
||||||
(let ((commit "cd6005b2b05ed2cb38a64e30886d387e679b361a")
|
(package
|
||||||
(revision "2"))
|
(name "mirror-substitutes")
|
||||||
(package
|
(version "0.0.1")
|
||||||
(name "mirror-substitutes")
|
(source (origin
|
||||||
(version (git-version "0.0.0" revision commit))
|
(method git-fetch)
|
||||||
(source (origin
|
(uri (git-reference
|
||||||
(method git-fetch)
|
(url "https://codeberg.org/hako/mirror-substitutes.git")
|
||||||
(uri (git-reference
|
(commit (string-append "v" version))))
|
||||||
(url "https://codeberg.org/hako/mirror-substitutes.git")
|
(file-name (git-file-name name version))
|
||||||
(commit commit)))
|
(sha256
|
||||||
(file-name (git-file-name name version))
|
(base32
|
||||||
(sha256
|
"0jqlipzwxml91rypdjipfzvplq605hjiy6d3avkfpwasal2ajjh1"))))
|
||||||
(base32
|
(build-system guile-build-system)
|
||||||
"0xrngcvi6xgbz0z99wkg7sl3yw3y92v3hijmbsrbx13bgzbak0yy"))))
|
(arguments
|
||||||
(build-system guile-build-system)
|
(list
|
||||||
(arguments
|
#:source-directory "modules"
|
||||||
(list
|
#:phases
|
||||||
#:source-directory "modules"
|
#~(modify-phases %standard-phases
|
||||||
#:phases
|
(add-after 'build 'install
|
||||||
#~(modify-phases %standard-phases
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(add-after 'build 'install
|
(define-values (module-dir object-dir)
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(target-guile-scm+go #$output))
|
||||||
(define-values (module-dir object-dir)
|
(define bindir
|
||||||
(target-guile-scm+go #$output))
|
(in-vicinity #$output "bin"))
|
||||||
(define bindir
|
(with-directory-excursion "scripts"
|
||||||
(in-vicinity #$output "bin"))
|
(for-each
|
||||||
(with-directory-excursion "scripts"
|
(lambda (script)
|
||||||
(for-each
|
(substitute* script
|
||||||
(lambda (script)
|
(("/usr/(bin/env) -S guix" _ env)
|
||||||
(substitute* script
|
(format #f "~a -S ~a"
|
||||||
(("/usr/(bin/env) -S guix" _ env)
|
(search-input-file inputs env)
|
||||||
(format #f "~a -S ~a"
|
(if (string-suffix? "query-substitutes" script)
|
||||||
(search-input-file inputs env)
|
"guix"
|
||||||
(if (string-suffix? "query-substitutes" script)
|
(search-input-file inputs "bin/guix")))))
|
||||||
"guix"
|
(install-file script bindir)
|
||||||
(search-input-file inputs "bin/guix")))))
|
(with-directory-excursion bindir
|
||||||
(install-file script bindir)
|
(wrap-program script
|
||||||
(with-directory-excursion bindir
|
`("GUILE_LOAD_PATH" prefix
|
||||||
(wrap-program script
|
(,module-dir))
|
||||||
`("GUILE_LOAD_PATH" prefix
|
`("GUILE_LOAD_COMPILED_PATH" prefix
|
||||||
(,module-dir))
|
(,object-dir)))))
|
||||||
`("GUILE_LOAD_COMPILED_PATH" prefix
|
(find-files "."))))))))
|
||||||
(,object-dir)))))
|
(native-inputs
|
||||||
(find-files "."))))))))
|
(list bash-minimal
|
||||||
(native-inputs
|
guile-3.0-latest
|
||||||
(list bash-minimal
|
guix))
|
||||||
guile-3.0-latest
|
(inputs
|
||||||
guix))
|
(list bash-minimal
|
||||||
(inputs
|
coreutils-minimal
|
||||||
(list bash-minimal
|
guix))
|
||||||
coreutils-minimal
|
(home-page "https://codeberg.org/hako/mirror-substitutes")
|
||||||
guix))
|
(synopsis "Mirror Guix substitutes")
|
||||||
(home-page "https://codeberg.org/hako/mirror-substitutes")
|
(description
|
||||||
(synopsis
|
"This package provides a collection of commands to help mirror Guix / Nix
|
||||||
"Mirror Guix substitutes without relying on remote server implementation")
|
substitutes (binary cache) from any upstream server.")
|
||||||
(description
|
(license license:gpl3+)))
|
||||||
"This package provides commands to mirror substitutes for Guix and Nix
|
|
||||||
without relying on the implementation of remote server.")
|
|
||||||
(license license:gpl3+)
|
|
||||||
(properties '((disable-updater? . #t))))))
|
|
||||||
Reference in new issue
Block a user