~ruther/guix-local

90ec785f21e6fa0ffcd2ed093c417f160c0302c8 — Sharlatan Hellseher 2 years ago cf5c8c4
gnu: clipman: Refresh package style.

* gnu/packages/xdisorg.scm (clipman): Adjust indentation.
[arguments] <#:phases>: Rename 'patch to 'patch-wl-copy-path phase to
reflect the purpose. Revert default 'install-license-files phase.
[native-inputs]: Remove go-github-com-alecthomas-template and
go-github-com-alecthomas-units, they are propagated from
go-gopkg-in-alecthomas-kingpin-v2.

Change-Id: I5332906c126904ced595aa322be5f933c305c5f7
1 files changed, 24 insertions(+), 23 deletions(-)

M gnu/packages/xdisorg.scm
M gnu/packages/xdisorg.scm => gnu/packages/xdisorg.scm +24 -23
@@ 3224,31 3224,32 @@ After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
  (package
    (name "clipman")
    (version "1.6.2")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/chmouel/clipman")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256 (base32
                        "033l2hy46r2zjy8dllcmkjxidhnqac9kfh4wkq9hfvim9imp5a4m"))))
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/chmouel/clipman")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "033l2hy46r2zjy8dllcmkjxidhnqac9kfh4wkq9hfvim9imp5a4m"))))
    (build-system go-build-system)
    (arguments
     (list #:import-path "github.com/yory8/clipman"
           #:install-source? #f
           #:phases #~(modify-phases %standard-phases
                        (add-before 'build 'patch
                          (lambda _
                            (substitute* "src/github.com/yory8/clipman/main.go"
                              (("\"wl-copy\"")
                               (string-append "\"" (which "wl-copy") "\"")))))
                        (delete 'install-license-files))))
    (native-inputs (list go-github-com-alecthomas-template
                         go-github-com-alecthomas-units))
    (inputs (list go-github-com-kballard-go-shellquote
                  go-gopkg-in-alecthomas-kingpin-v2
                  libnotify
                  wl-clipboard))
     (list
      #:import-path "github.com/yory8/clipman"
      #:install-source? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'patch-wl-copy-path
            (lambda _
              (substitute* "src/github.com/yory8/clipman/main.go"
                (("\"wl-copy\"")
                 (string-append "\"" (which "wl-copy") "\""))))))))
    (inputs
     (list go-github-com-kballard-go-shellquote
           go-gopkg-in-alecthomas-kingpin-v2
           libnotify
           wl-clipboard))
    (synopsis "Basic clipboard manager with support for persisting copy buffers")
    (description
     "A clipboard manager for Wayland that relies on an external selector,