mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: packages: Add systemd-stub.
* gnu/packages/bootloaders.scm (systemd-stub): New variable. Change-Id: I974bad9ff7a52f736286d05de53f7c5ccb60b9d6
This commit is contained in:
parent
a863f0b976
commit
bddc831845
1 changed files with 47 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
(define-module (gnu packages bootloaders)
|
||||
#:use-module (gnu bootloader)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages assembly)
|
||||
#:use-module (gnu packages base)
|
||||
|
@ -48,6 +49,7 @@ (define-module (gnu packages bootloaders)
|
|||
#:use-module (gnu packages check)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages cross-base)
|
||||
#:use-module (gnu packages crypto)
|
||||
#:use-module (gnu packages disk)
|
||||
#:use-module (gnu packages efi)
|
||||
#:use-module (gnu packages firmware)
|
||||
|
@ -55,6 +57,7 @@ (define-module (gnu packages bootloaders)
|
|||
#:use-module (gnu packages fontutils)
|
||||
#:use-module (gnu packages gcc)
|
||||
#:use-module (gnu packages gettext)
|
||||
#:use-module (gnu packages gperf)
|
||||
#:use-module (gnu packages guile)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages llvm)
|
||||
|
@ -596,6 +599,50 @@ (define systemd-source
|
|||
(base32
|
||||
"1qdyw9g3jgvsbc1aryr11gpc3075w5pg00mqv4pyf3hwixxkwaq6"))))
|
||||
|
||||
(define-public systemd-stub
|
||||
(package
|
||||
(name "systemd-stub")
|
||||
(version %systemd-version)
|
||||
(source systemd-source)
|
||||
(build-system meson-build-system)
|
||||
(arguments
|
||||
(list #:configure-flags
|
||||
#~(list "-Dmode=release" "-Defi=true" "-Dsbat-distro=guix"
|
||||
"-Dsbat-distro-generation=1" ; package revision!
|
||||
"-Dsbat-distro-summary=Guix System"
|
||||
"-Dsbat-distro-url=https://guix.gnu.org"
|
||||
#$(string-append "-Dsbat-distro-pkgname="
|
||||
(package-name this-package))
|
||||
#$(string-append "-Dsbat-distro-version="
|
||||
(package-version this-package)))
|
||||
#:phases
|
||||
;; TODO: 32-bit support.
|
||||
(let* ((stub (string-append "src/boot/efi/linux" (efi-arch)
|
||||
".efi.stub")))
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'build
|
||||
(lambda* (#:key parallel-build? #:allow-other-keys)
|
||||
(invoke "ninja" #$stub "-j"
|
||||
(if parallel-build?
|
||||
(number->string (parallel-job-count))
|
||||
"1"))))
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(install-file #$stub (string-append #$output
|
||||
"/libexec"))))
|
||||
(delete 'check)))))
|
||||
(supported-systems %efi-supported-systems)
|
||||
(inputs
|
||||
(list libcap libxcrypt python-pyelftools `(,util-linux "lib")))
|
||||
(native-inputs (list gperf pkg-config python-3 python-jinja2))
|
||||
(home-page "https://systemd.io/")
|
||||
(synopsis "Unified kernel image UEFI stub")
|
||||
(description
|
||||
"Simple UEFI boot stub that loads a conjoined kernel image and
|
||||
supporting data to their proper locations, before chainloading to the
|
||||
kernel. It supports measured and/or verified boot environments.")
|
||||
(license license:lgpl2.1+)))
|
||||
|
||||
(define-public ukify
|
||||
(package
|
||||
(name "ukify")
|
||||
|
|
Loading…
Reference in a new issue