mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 20:15:25 -06:00
gnu: Add samu-as-ninja-wrapper.
* gnu/packages/ninja.scm (samu-as-ninja-wrapper): New variable. Change-Id: I8227fc23ebb2bf9cdc9a6729be9f00ff10b196ca
This commit is contained in:
parent
d575ca0334
commit
da5d2b382e
1 changed files with 19 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages bash)
|
||||
|
|
@ -116,3 +117,21 @@ replacement, use the @code{samu-as-ninja-wrapper} package.")
|
|||
(license (list asl2.0 ;for the most part
|
||||
expat)))) ;htab.h, htab.c and tree.c
|
||||
|
||||
(define-public samu-as-ninja-wrapper
|
||||
(package/inherit samurai
|
||||
(name "samu-as-ninja-wrapper")
|
||||
(build-system trivial-build-system)
|
||||
(arguments
|
||||
(list #:builder
|
||||
(with-imported-modules '((guix build utils))
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((bindir (string-append #$output "/bin"))
|
||||
(samu (string-append #$(this-package-input "samurai")
|
||||
"/bin/samu")))
|
||||
(mkdir-p bindir)
|
||||
(symlink samu (string-append bindir "/ninja")))))))
|
||||
(inputs (list samurai))
|
||||
(description "This package provides the @command{ninja} command,
|
||||
implemented as a symbolic link to the @command{samu} command of @code{samurai}
|
||||
package.")))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue