aboutsummaryrefslogtreecommitdiff
path: root/km-packages/git-annex.scm
blob: a2a51a77f5b4f452055c97806133570d890be3b7 (plain)
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
;;; git-annex.scm --- custom Guix packages for git-annex
;;;
;;; Copyright © 2019-2022 Kyle Meyer <kyle@kyleam.com>
;;;
;;; This file is NOT part of GNU Guix.
;;;
;;; This program 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.
;;;
;;; This program 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 this program.  If not, see
;;; <https://www.gnu.org/licenses/>.

(define-module (km-packages git-annex)
  #:use-module (gnu packages)
  #:use-module (gnu packages ipfs)
  #:use-module (guix build-system trivial)
  #:use-module (guix download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages))

(define-public git-annex-remote-ipfs
  (package
    (name "git-annex-remote-ipfs")
    (version "0.20190702")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://git-annex.branchable.com/"
                           "special_remotes/external/git-annex-remote-ipfs"))
       (sha256
        (base32
         "0m3fwaz4r7y0xf07rnh23n7rk2qm8idizslspwcqmp413m97w345"))))
    (build-system trivial-build-system)
    (arguments
     `(#:modules ((guix build utils))
       #:builder
       (begin
         (use-modules (guix build utils))
         (let* ((file (assoc-ref %build-inputs "source"))
                (out (string-append %output "/bin"))
                (outfile (string-append out "/git-annex-remote-ipfs")))
           (mkdir-p out)
           (copy-file file outfile)
           (chmod outfile #o555)
           #t))))
    (propagated-inputs
     `(("go-ipfs" ,go-ipfs)))
    (home-page "https://git-annex.branchable.com")
    (synopsis "todo")
    (description "todo")
    (license license:gpl3)))