You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.8 KiB

;; Define the Guile module containing our package.
(define-module (nnn-ctx8-git)
;; Import some other modules into our module.
#:use-module (guix gexp) ;gexp #~, ungexp #$
#:use-module (guix git)
#:use-module (guix packages) ;package stuff, like the package/origin records
#:use-module (guix utils) ;random utilities...
#:use-module (gnu packages) ;for search-patches
#:use-module (gnu packages admin)) #|for the base nnn package|#
(define-public nnn-ctx8-git
;; This is like the nnn package, but with certain overrides.
(inherit nnn)
(name "nnn-ctx8-git") ;the package name as seen by the CLI
(version (package-version nnn)) ;the package version as seen by the CLI
(source (git-checkout
(url (package-home-page nnn))
(branch "master")))
(arguments ; build-system specific arguments
;; We don't want to duplicate nnn's arguments, so we use
;; substitute-keyword-arguments to amend them.
(substitute-keyword-arguments (package-arguments nnn)
;; "flags" is bound to the old value of #:make-flags.
((#:make-flags flags)
;; Add the new flag to the original flags. Here we use a `g-expression',
;; `#~', which starts a block of build-time code. Ungexp `#$' is the
;; gexp equivalent of unquote `,', allowing us to "escape" outside the
;; build evaluation environment.
#~(cons* "O_CTX8=1" #$flags))))
(description ;long-form description of the package
"@command{nnn-ctx8-git} is @command{nnn} without the error-prone
delete on X key (^X only) and compiled with O_CTX8=1 to enable 8 contexts.
@command{nnn} is a fork of @command{noice}, a fast and minimal text terminal
file browser with keyboard shortcuts for navigation, opening files and
running tasks. There is no configuration file and MIME associations are