# thing.scm -rw-r--r-- 4.5 KiB View raw
                                                                                
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
(use-modules (guix packages)
             (guix download)
             (guix git-download)
			 (guix build-system perl)
			 (guix licenses)
			 (gnu packages perl) ;; for perl-io-stringy
			 (gnu packages gtk)) ;; for perl-cairo and perl-pango


;; The following are chordpro's dependencies from CPAN.  Their definitions come
;; from `$ guix import cpan PERL::MODULE` with only a few minor manual changes.

(define perl-app-packager
  (package
    (name "perl-app-packager")
    (version "1.430")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://cpan/authors/id/J/JV/JV/App-Packager-"
               version
               ".tar.gz"))
        (sha256
          (base32
            "1d7v8glnzpy8d0pq2fx2n9cqhg40zl70alvxqd8gxzwcxkab12ll"))))
    (build-system perl-build-system)
    (home-page
      "https://metacpan.org/release/App-Packager")
    (synopsis "Abstraction for Packagers")
    (description "Abstraction for Packagers")
    (license perl-license)))

(define perl-file-loadlines
  (package
    (name "perl-file-loadlines")
    (version "0.02")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://cpan/authors/id/J/JV/JV/File-LoadLines-"
               version
               ".tar.gz"))
        (sha256
          (base32
            "0yvbwj5mi83f95zrlyb0dga66ds8yyc70w50r79lssbvrwqiq35b"))))
    (build-system perl-build-system)
    (home-page
      "https://metacpan.org/release/File-LoadLines")
    (synopsis "Load lines from file")
    (description "Load lines from file")
    (license perl-license)))

(define perl-image-info
  (package
    (name "perl-image-info")
    (version "1.42")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://cpan/authors/id/S/SR/SREZIC/Image-Info-"
               version
               ".tar.gz"))
        (sha256
          (base32
            "0kwg9a8in219p4ka1ykzdfcfpfpkc979ffmccg6w3cvi7w65djib"))))
    (build-system perl-build-system)
    (propagated-inputs
      `(("perl-image-info" ,perl-image-info)
        ("perl-io-stringy" ,perl-io-stringy)))
    (home-page
      "https://metacpan.org/release/Image-Info")
    (synopsis
      "Extract meta information from image files")
    (description "Extract meta information from image files")
    (license perl-license)))

(define perl-string-interpolate-named
  (package
    (name "perl-io-string")
    (version "1.08")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://cpan/authors/id/G/GA/GAAS/IO-String-"
               version
               ".tar.gz"))
        (sha256
          (base32
            "18755m410yl70s17rgq3m0hyxl8r5mr47vsq1rw7141d8kc4lgra"))))
    (build-system perl-build-system)
    (home-page
      "https://metacpan.org/release/IO-String")
    (synopsis
      "Emulate file interface for in-core strings")
    (description "Emulate file interface for in-core strings")
    (license perl-license)))

(define perl-string-interpolate-named
  (package
    (name "perl-string-interpolate-named")
    (version "0.05")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://cpan/authors/id/J/JV/JV/String-Interpolate-Named-"
               version
               ".tar.gz"))
        (sha256
          (base32
            "106mkhkd1x463dczjcs0hv4k7604xdd0hlwpy8yhk5gfbiirxjc4"))))
    (build-system perl-build-system)
    (home-page
      "https://metacpan.org/release/String-Interpolate-Named")
    (synopsis
      "Interpolated named arguments in string")
    (description "Interpolated named arguments in string")
    (license perl-license)))

(package
	(name "my-chordpro")
	(version "idk")
	(source (origin
				(method git-fetch)
				(uri (git-reference
				     (url "https://github.com/ChordPro/chordpro.git")
				     (commit "64d45f37e4af147461fc4dc44b02fcb199845d79")))
				(sha256        ;; `$ guix hash -rx .` for the sha256 of git repos
					(base32    ;; `$ guix download URL` for tar-files
						"188cz6yz801bz5ihxn02zlnf438pxmsv53h01jmi0sg5vrw1n2mr"))))
	(build-system perl-build-system)
	(inputs
		`(("perl-cairo" ,perl-cairo)
		  ("perl-pango" ,perl-pango)
		  ("perl-app-packager" ,perl-app-packager)
		  ("perl-file-loadlines" ,perl-file-loadlines)
		  ("perl-image-info" ,perl-image-info)
		  ("perl-io-string" ,perl-io-string)
		  ("perl-string-interpolate-named" ,perl-string-interpolate-named)))
	(synopsis "Chordpro")
	(description "Chordpro Pango Branch")
	(home-page "https://www.chordpro.org/")
	(license artistic2.0))