Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source information for Guix backend #1

Open
Ambrevar opened this issue Jun 9, 2021 · 0 comments
Open

Add source information for Guix backend #1

Ambrevar opened this issue Jun 9, 2021 · 0 comments

Comments

@Ambrevar
Copy link
Member

Ambrevar commented Jun 9, 2021

Currently OSPM does not report source information of Guix packages.

Some Scheme code that may help:

(package-source $2)
(procedure-name (origin-method (package-source $2)))
(origin-uri (package-source $2))

,use (guix base32)
(bytevector->nix-base32-string (content-hash-value (origin-hash (package-source $2))))
(content-hash-algorithm (origin-hash (package-source $2)))

(origin-modules (package-source $2))



scheme@(guile-user)> (with-output-to-string (lambda () (write  (origin-snippet (package-source $32)))))
$35 = "(begin (substitute* \"package.lisp\" ((\":export\") \":export\\n   :+font-cache-filename+\")) #t)"

(git-reference-url (origin-uri (package-source $32)))
(git-reference-commit (origin-uri (package-source $32)))
(git-reference-recursive? (origin-uri (package-source $32)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant