ca45da9fc9
Hackage packages can have metadata revisions (Cabal file only) that are not reflected in the source archive. The Haskell build system has support for this, but until now the Hackage importer would create a package based on the revised Cabal file which would then build using the old Cabal file. Fixes <https://bugs.gnu.org/35750>. * guix/import/cabal.scm (<cabal-package>): Add 'revision' field. (eval-cabal): Parse 'x-revision:' property. * guix/import/hackage.scm (read-cabal-and-hash): New procedure. (hackage-fetch-and-hash): New procedure. (hackage-fetch): Rewrite using 'hackage-fetch-and-hash'. (hackage-module->sexp): Add 'cabal-hash' argument and use it to populate the '#:cabal-revision' argument. (hackage->guix-package): Use the new '-and-hash' functions to get the hash of the Cabal file and pass it to 'hackage-module->sexp'. * guix/tests/hackage.scm: Test import of Cabal file revision. Signed-off-by: Timothy Sample <samplet@ngyro.com> |
||
---|---|---|
.. | ||
build | ||
build-system | ||
import | ||
scripts | ||
store | ||
tests | ||
base16.scm | ||
base32.scm | ||
base64.scm | ||
build-system.scm | ||
bzr-download.scm | ||
cache.scm | ||
channels.scm | ||
ci.scm | ||
colors.scm | ||
combinators.scm | ||
config.scm.in | ||
cpio.scm | ||
cve.scm | ||
cvs-download.scm | ||
deprecation.scm | ||
derivations.scm | ||
describe.scm | ||
diagnostics.scm | ||
discovery.scm | ||
docker.scm | ||
download.scm | ||
elf.scm | ||
ftp-client.scm | ||
gexp.scm | ||
git-download.scm | ||
git.scm | ||
glob.scm | ||
gnu-maintenance.scm | ||
gnupg.scm | ||
grafts.scm | ||
graph.scm | ||
hg-download.scm | ||
http-client.scm | ||
i18n.scm | ||
inferior.scm | ||
licenses.scm | ||
lzlib.scm | ||
man-db.scm | ||
memoization.scm | ||
modules.scm | ||
monad-repl.scm | ||
monads.scm | ||
nar.scm | ||
packages.scm | ||
pki.scm | ||
profiles.scm | ||
profiling.scm | ||
progress.scm | ||
records.scm | ||
scripts.scm | ||
search-paths.scm | ||
self.scm | ||
serialization.scm | ||
sets.scm | ||
ssh.scm | ||
status.scm | ||
store.scm | ||
svn-download.scm | ||
swh.scm | ||
tests.scm | ||
ui.scm | ||
upstream.scm | ||
utils.scm | ||
workers.scm | ||
zlib.scm |