Archived
1
0
Fork 0

gnu: crun: Adjust package ideation.

The release package provides the configured version, so there is no need
to use git commit to adjust version detection.

* gnu/packages/containers.scm (crun): Remove let and indent the package.
[arguments] <#:phases>: Remove 'do-no-depend-on-git phase as the package
includes release version.

Change-Id: Ie50fe1f5f8ed69a77e353033679bfd98db6e56f4
This commit is contained in:
Sharlatan Hellseher 2024-02-14 15:21:09 +00:00
parent 6002e9e771
commit b24c1bab47
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -54,7 +54,6 @@
#:use-module (gnu packages wget))
(define-public crun
(let ((commit "de537a7965bfbe9992e2cfae0baeb56a08128171"))
(package
(name "crun")
(version "1.14.1")
@ -74,17 +73,6 @@
#:tests? #f ; XXX: needs /sys/fs/cgroup mounted
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'do-not-depend-on-git
(lambda _
(substitute* "autogen.sh"
(("^git submodule update.*")
""))
(with-output-to-file "git-version.h"
(lambda ()
(display (string-append
"/* autogenerated. */\n#ifndef GIT_VERSION\n# define GIT_VERSION \""
,commit
"\"\n#endif\n"))))))
(add-after 'unpack 'fix-tests
(lambda _
(substitute* (find-files "tests" "\\.(c|py)")
@ -109,7 +97,7 @@
(description
"crun is a fast and low-memory footprint Open Container Initiative (OCI)
Container Runtime fully written in C.")
(license license:gpl2+))))
(license license:gpl2+)))
(define-public conmon
(package