~whereiseveryone/guixrus

guixrus/guixrus/packages/croc.scm -rw-r--r-- 4.6 KiB
e23458a3jgart add emacs-consult-lsp 12 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 konkrotte <konkrotte@posteo.net>
;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages croc)
  #:use-module (guix build-system go)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (gnu packages golang)
  #:use-module (gnu packages syncthing)
  #:use-module (guixrus packages common go))

(define-public croc
  (package
    (name "croc")
    (version "9.5.2")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/schollz/croc")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1ynx3wck0820z0a2m976xbvnzq83kr9cxpl08i13qi7jnrz3ibqx"))))
    (build-system go-build-system)
    (arguments
     `(#:import-path "github.com/schollz/croc/v9"
       #:install-source? #f
       #:phases
       (modify-phases %standard-phases
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (invoke "mv"
                       (string-append out "/bin/v9")
                       (string-append out "/bin/croc"))))))))
    (inputs `(("go-gopkg-in-yaml-v3" ,go-gopkg-in-yaml-v3) ("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)
              ("go-golang-org-x-text" ,go-golang-org-x-text)
              ("go-golang-org-x-term" ,go-golang-org-x-term)
              ("go-golang-org-x-sys" ,go-golang-org-x-sys)
              ("go-github-com-twmb-murmur3" ,go-github-com-twmb-murmur3)
              ("go-github-com-tscholl2-siec" ,go-github-com-tscholl2-siec)
              ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3)
              ("go-github-com-russross-blackfriday" ,go-github-com-russross-blackfriday)
              ("go-github-com-rivo-uniseg" ,go-github-com-rivo-uniseg)
              ("go-github-com-pmezard-go-difflib" ,go-github-com-pmezard-go-difflib)
              ("go-github-com-mitchellh-colorstring" ,go-github-com-mitchellh-colorstring)
              ("go-github-com-mattn-go-runewidth" ,go-github-com-mattn-go-runewidth)
              ("go-github-com-kr-pretty" ,go-github-com-kr-pretty)
              ("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)
              ("go-github-com-cpuguy83-go-md2man-v2" ,go-github-com-cpuguy83-go-md2man-v2)
              ("go-github-com-oneofone-xxhash" ,go-github-com-oneofone-xxhash)
              ("go-golang-org-x-time" ,go-golang-org-x-time)
              ("go-golang-org-x-net" ,go-golang-org-x-net)
              ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
              ("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
              ("go-github-com-schollz-progressbar-v3" ,go-github-com-schollz-progressbar-v3)
              ("go-github-com-schollz-peerdiscovery" ,go-github-com-schollz-peerdiscovery)
              ("go-github-com-schollz-pake-v3" ,go-github-com-schollz-pake-v3)
              ("go-github-com-schollz-mnemonicode" ,go-github-com-schollz-mnemonicode)
              ("go-github-com-schollz-logger" ,go-github-com-schollz-logger)
              ("go-github-com-schollz-cli-v2" ,go-github-com-schollz-cli-v2)
              ("go-github-com-kalafut-imohash" ,go-github-com-kalafut-imohash)
              ("go-github-com-denisbrodbeck-machineid" ,go-github-com-denisbrodbeck-machineid)
              ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash)))
    (home-page "https://github.com/schollz/croc")
    (synopsis "Easily and securely send things from one computer to another")
    (description
"@code{croc} is a tool that allows any two computers to simply and
securely transfer files and folders.")
    (license license:expat)))