File tree Expand file tree Collapse file tree 2 files changed +71
-59
lines changed Expand file tree Collapse file tree 2 files changed +71
-59
lines changed Original file line number Diff line number Diff line change 5
5
{ lib
6
6
, stdenv
7
7
, fetchFromGitHub
8
- $1
8
+ , $1
9
+ , $2
9
10
}:
10
11
11
12
stdenv.mkDerivation rec {
12
- pname = "$2 ";
13
- version = "$3 ";
13
+ pname = "$3 ";
14
+ version = "$4 ";
14
15
15
16
src = fetchFromGitHub {
16
- owner = "$4 ";
17
- repo = " $2 " ;
18
- rev = "${ 5 :v\$ \{ version\} } ";
19
- sha256 = "${ 6 :\$ \{ lib.fakeSha256\} } ";
17
+ owner = "$5 ";
18
+ repo = ${ 6 : pname } ;
19
+ rev = "${ 7 :v\$ \{ version\} } ";
20
+ sha256 = "${ 8 :\$ \{ lib.fakeSha256\} } ";
20
21
};
21
22
22
- nativeBuildInputs = [ ];
23
- buildInputs = [ $1 ];
23
+ nativeBuildInputs = [ ${ 1 :$ (replace-regexp-in-string " *" " " (subst-char-in-string ?, ? yas-text)) } ];
24
+ buildInputs = [
25
+ ${ 2 :$ (replace-regexp-in-string " *" " " (subst-char-in-string ?, ? yas-text)) }
26
+ ];
24
27
25
28
meta = with lib; {
26
- homepage = "https://${ 7 :github.com/$4/$2 } ";
27
- description = "$8 ";
28
- license = licenses.${ 9 :$$
29
+ homepage = "https://${ 9 :github.com/$5/$3 } ";
30
+ description = "$10 ";
31
+ longDescription = ''
32
+ $11
33
+ '';
34
+ license = licenses.${ 12 :$$
29
35
(yas-choose-value '(
30
36
"agpl3"
31
37
"asl20"
@@ -51,26 +57,26 @@ stdenv.mkDerivation rec {
51
57
"ofl"
52
58
"unfree"
53
59
)) } ;
54
- maintainers = with maintainers; [ $10 ];
55
- platforms = platforms.${ 11 :$$
60
+ maintainers = with maintainers; [ $12 ];
61
+ platforms = platforms.${ 13 :$$
56
62
(yas-choose-value '(
57
- "all"
58
- "allBut"
59
- "arm"
60
- "cygwin"
61
- "darwin"
62
- "freebsd"
63
- "gnu"
64
- "i686"
65
- "illumos"
66
- "linux"
67
- "mesaPlatforms"
68
- "mips"
69
- "netbsd"
70
- "none"
71
- "openbsd"
72
- "unix"
73
- "x86"
63
+ "all"
64
+ "allBut"
65
+ "arm"
66
+ "cygwin"
67
+ "darwin"
68
+ "freebsd"
69
+ "gnu"
70
+ "i686"
71
+ "illumos"
72
+ "linux"
73
+ "mesaPlatforms"
74
+ "mips"
75
+ "netbsd"
76
+ "none"
77
+ "openbsd"
78
+ "unix"
79
+ "x86"
74
80
)) } ;
75
81
};
76
82
}
Original file line number Diff line number Diff line change 6
6
, stdenv
7
7
, fetchurl
8
8
$1
9
+ $2
9
10
}:
10
11
11
12
stdenv.mkDerivation rec {
12
- pname = "$2 ";
13
- version = "$3 ";
13
+ pname = "$3 ";
14
+ version = "$4 ";
14
15
15
16
src = fetchurl {
16
- url = "$4 ";
17
- sha256 = "${ 5 :\$ \{ lib.fakeSha256\} } ";
17
+ url = "$5 ";
18
+ sha256 = "${ 6 :\$ \{ lib.fakeSha256\} } ";
18
19
};
19
20
20
- nativeBuildInputs = [ ];
21
- buildInputs = [ $1 ];
21
+ nativeBuildInputs = [ ${ 1 :$ (replace-regexp-in-string " *" " " (subst-char-in-string ?, ? yas-text)) } ];
22
+ buildInputs = [
23
+ ${ 2 :$ (replace-regexp-in-string " *" " " (subst-char-in-string ?, ? yas-text)) }
24
+ ];
22
25
23
26
meta = with lib; {
24
- homepage = "https://$6 ";
25
- description = "$7 ";
26
- license = licenses.${ 8 :$$
27
+ homepage = "https://$7 ";
28
+ description = "$8 ";
29
+ longDescription = ''
30
+ $9
31
+ '';
32
+ license = licenses.${ 10 :$$
27
33
(yas-choose-value '(
28
34
"agpl3"
29
35
"asl20"
@@ -49,26 +55,26 @@ stdenv.mkDerivation rec {
49
55
"ofl"
50
56
"unfree"
51
57
)) } ;
52
- maintainers = with maintainers; [ $9 ];
53
- platforms = platforms.${ 10 :$$
58
+ maintainers = with maintainers; [ $11 ];
59
+ platforms = platforms.${ 12 :$$
54
60
(yas-choose-value '(
55
- "all"
56
- "allBut"
57
- "arm"
58
- "cygwin"
59
- "darwin"
60
- "freebsd"
61
- "gnu"
62
- "i686"
63
- "illumos"
64
- "linux"
65
- "mesaPlatforms"
66
- "mips"
67
- "netbsd"
68
- "none"
69
- "openbsd"
70
- "unix"
71
- "x86"
61
+ "all"
62
+ "allBut"
63
+ "arm"
64
+ "cygwin"
65
+ "darwin"
66
+ "freebsd"
67
+ "gnu"
68
+ "i686"
69
+ "illumos"
70
+ "linux"
71
+ "mesaPlatforms"
72
+ "mips"
73
+ "netbsd"
74
+ "none"
75
+ "openbsd"
76
+ "unix"
77
+ "x86"
72
78
)) } ;
73
79
};
74
80
}
You can’t perform that action at this time.
0 commit comments