[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/14: gnu: Add loadkeys-static.
From: |
guix-commits |
Subject: |
11/14: gnu: Add loadkeys-static. |
Date: |
Sun, 24 Mar 2019 18:10:23 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 48e595b7a8f8f83ba00386e4dccf1ef809474226
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 20 12:17:14 2019 +0100
gnu: Add loadkeys-static.
* gnu/packages/linux.scm (loadkeys-static): New variable.
---
gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index bc2219b..d52e12f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1999,6 +1999,43 @@ for systems using the Linux kernel. This includes
commands such as
'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.")
(license license:gpl2+)))
+(define-public loadkeys-static
+ (package
+ (inherit kbd)
+ (name "loadkeys-static")
+ (arguments
+ (substitute-keyword-arguments (package-arguments kbd)
+ ((#:configure-flags flags ''())
+ `(append '("LDFLAGS=-static" "--disable-shared" "--disable-nls"
+ "--disable-vlock" ;so we don't need libpam
+ "--disable-libkeymap")
+ ,flags))
+ ((#:make-flags flags ''())
+ `(cons "LDFLAGS=-all-static" ,flags))
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ ;; The binary keeps references to gzip, among other things,
+ ;; which we don't need in the initrd, so strip references.
+ (remove-store-references "src/loadkeys")
+
+ (install-file "src/loadkeys"
+ (string-append out "/bin"))
+ #t)))
+ (delete 'post-install)))
+ ((#:strip-flags _ '())
+ ''("--strip-all"))
+ ((#:allowed-references _ '())
+ '())))
+
+ (synopsis "Statically-linked @command{loadkeys} program")
+
+ ;; This package is meant to be used internally in the initrd so don't
+ ;; expose it.
+ (properties '((hidden? . #t)))))
+
(define-public inotify-tools
(package
(name "inotify-tools")
- branch master updated (37f6289 -> fab9aa1), guix-commits, 2019/03/24
- 01/14: gnu: flatpak: Use glib-or-gtk-build-system., guix-commits, 2019/03/24
- 03/14: bootloader: Reindent record type definition., guix-commits, 2019/03/24
- 02/14: bootloader: Remove unused 'additional-configuration' field., guix-commits, 2019/03/24
- 06/14: services: xorg: Remove unused #:guile parameter., guix-commits, 2019/03/24
- 05/14: bootloader: Add a 'keyboard-layout' field., guix-commits, 2019/03/24
- 04/14: Add (gnu system keyboard)., guix-commits, 2019/03/24
- 10/14: vm: 'virtualized-operating-system' inherits from the user's bootloader config., guix-commits, 2019/03/24
- 09/14: services: xorg: Add a 'keyboard-layout' field in <xorg-configuration>., guix-commits, 2019/03/24
- 11/14: gnu: Add loadkeys-static.,
guix-commits <=
- 08/14: services: sddm, slim, gdm: Take an <xorg-configuration> record., guix-commits, 2019/03/24
- 14/14: gnu: Add xfce4-whiskermenu-plugin., guix-commits, 2019/03/24
- 13/14: doc: Document keyboard layout., guix-commits, 2019/03/24
- 07/14: services: xorg: Define an <xorg-configuration> record type., guix-commits, 2019/03/24
- 12/14: system: Initialize console keyboard layout in the initrd., guix-commits, 2019/03/24