diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-10 00:17:29 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-21 23:47:53 +0000 |
commit | eebacdfc8aa36cae963c503a73f30c4cf2d96689 (patch) | |
tree | f7dd3846e478d9e068edc60042416662d61fd059 | |
parent | 4bf8855a50d610fb26fefc21b222602d27dab0b2 (diff) |
gnu: go-github-com-wraparound-wrap: Improve style.
* gnu/packages/golang.scm (go-github-com-wraparound-wrap): Re-indent and
move all propagated inputs to native.
[arguments] <install-source?>: It's a final CLI command.
<import-path>: Set to the source of command.
<unpack-path>: Provide it.
<phases>: Use default 'build.
[propagated-inputs]: Remove go-github-com-spf13-cobra,
go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont.
[native-inputs]: Add go-github-com-spf13-cobra,
go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont.
[description]: Apply fill column.
Change-Id: I80d470a77e49ff5004a9eb1417123e09efde024f
-rw-r--r-- | gnu/packages/golang.scm | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c2fadd1e25..f6debea9dd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1581,29 +1581,25 @@ TrueType font files in your system's user and system font directories.") (package (name "go-github-com-wraparound-wrap") (version "0.3.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Wraparound/wrap") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77")) - (patches (search-patches - "go-github-com-wraparound-wrap-free-fonts.patch")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Wraparound/wrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77")) + (patches (search-patches + "go-github-com-wraparound-wrap-free-fonts.patch")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/Wraparound/wrap/" - #:tests? #f ; no tests + #:install-source? #f + #:import-path "github.com/Wraparound/wrap/cmd/wrap" + #:unpack-path "github.com/Wraparound/wrap" #:phases #~(modify-phases %standard-phases - (replace 'build - (lambda* (#:key import-path #:allow-other-keys) - (invoke "go" "install" "-v" "-x" - "-ldflags=-s -w" - (string-append import-path "cmd/wrap")))) (add-after 'install 'wrap-fonts (lambda* (#:key inputs outputs #:allow-other-keys) (for-each @@ -1615,15 +1611,18 @@ TrueType font files in your system's user and system font directories.") (map cdr inputs)))))) (find-files (string-append (assoc-ref outputs "out") "/bin")))))))) - (propagated-inputs (list go-github-com-spf13-cobra - go-github-com-signintech-gopdf - go-github-com-flopp-go-findfont)) - (inputs (list font-liberation font-gnu-freefont)) + (native-inputs + (list go-github-com-spf13-cobra + go-github-com-signintech-gopdf + go-github-com-flopp-go-findfont)) + (inputs + (list font-liberation + font-gnu-freefont)) (home-page "https://github.com/Wraparound/wrap") (synopsis "Format Fountain screenplays") (description - "Wrap is a command line tool that is able to convert Fountain files into a -correctly formatted screen- or stageplay as an HTML or a PDF. It supports + "Wrap is a command line tool that is able to convert Fountain files into +a correctly formatted screen- or stageplay as an HTML or a PDF. It supports standard Fountain, but also has some custom syntax extensions such as translated keywords and acts.") (license license:gpl3))) |