guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#30924] [PATCH] gnu: Add cloud-foundry-cli.


From: Marius Bakke
Subject: [bug#30924] [PATCH] gnu: Add cloud-foundry-cli.
Date: Mon, 26 Mar 2018 19:55:54 +0200
User-agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu)

Christopher Baines <address@hidden> writes:

> * gnu/packages/cloud-foundry.scm: New file.

[...]

> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "code.cloudfoundry.org/cli"
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; This should be redundant once the vendor directory is removed 
> from
> +         ;; this package
> +         (add-before 'reset-gzip-timestamps 'remove-readonly-gzip-files
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (for-each delete-file
> +                       (find-files
> +                        (assoc-ref outputs "out")
> +                        ".*\\.gz"))))

'for-each' has an unspecified return value, so please add #t here.

> +         (add-after 'install 'rename-binary
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out")))
> +               (rename-file (string-append out "/bin/cli")
> +                            (string-append out "/bin/cf"))))))))

Ditto for 'rename-file'.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]