File tree Expand file tree Collapse file tree 2 files changed +30
-29
lines changed
pkgs/development/beam-modules/elvis-erlang Expand file tree Collapse file tree 2 files changed +30
-29
lines changed Original file line number Diff line number Diff line change 11{
2+ buildRebar3 ,
23 fetchFromGitHub ,
3- fetchgit ,
44 fetchHex ,
5+ fetchgit ,
6+ lib ,
57 rebar3Relx ,
6- buildRebar3 ,
78 writeScript ,
8- lib ,
99} :
1010
11- let
12- owner = "inaka" ;
13- repo = "elvis" ;
14- in
1511rebar3Relx rec {
1612 releaseType = "escript" ;
17- # The package name "elvis" is already taken
1813 pname = "elvis-erlang" ;
19- version = "3.2.6" ;
14+ version = "4.0.0" ;
15+
2016 src = fetchFromGitHub {
21- inherit owner repo ;
22- sha256 = "13QM6UbH+1PxzhY/ufi5PEP2pKqSl5+g6tMvKmOUMb0=" ;
23- rev = version ;
17+ owner = "inaka" ;
18+ repo = "elvis" ;
19+ hash = "sha256-HJH/p8EHE4zor0LOczpOlDy6sPSI+WVWIS22hGhjQ0s=" ;
20+ tag = version ;
2421 } ;
22+
2523 beamDeps = builtins . attrValues (
2624 import ./rebar-deps.nix {
2725 inherit fetchHex fetchgit fetchFromGitHub ;
2826 builder = buildRebar3 ;
2927 }
3028 ) ;
29+
3130 passthru . updateScript = writeScript "update.sh" ''
3231 #!/usr/bin/env nix-shell
33- #!nix-shell -i bash -p bash common-updater-scripts git nix-prefetch-git gnutar gzip "rebar3WithPlugins {globalPlugins = [beamPackages.rebar3-nix];}"
32+ #!nix-shell -i bash -p bash common-updater-scripts git nix-prefetch-git gnutar gzip "rebar3WithPlugins {globalPlugins = [beamPackages.rebar3-nix];}" nixfmt-rfc-style
3433
3534 set -euo pipefail
3635
@@ -42,15 +41,17 @@ rebar3Relx rec {
4241 tmpdir=$(mktemp -d)
4342 cp -R $(nix-build $nixpkgs --no-out-link -A elvis-erlang.src)/* "$tmpdir"
4443 (cd "$tmpdir" && HOME=. rebar3 nix lock -o "$nix_path/rebar-deps.nix")
44+ nixfmt "$nix_path/rebar-deps.nix"
4545 else
46- echo "${ repo } is already up-to-date"
46+ echo "elvis-erlang is already up-to-date"
4747 fi
4848 '' ;
49- meta = with lib ; {
49+
50+ meta = {
5051 homepage = "https://github.com/inaka/elvis" ;
5152 description = "Erlang Style Reviewer" ;
52- platforms = platforms . unix ;
53- license = licenses . asl20 ;
53+ platforms = lib . platforms . unix ;
54+ license = lib . licenses . asl20 ;
5455 maintainers = with lib . maintainers ; [ dlesl ] ;
5556 mainProgram = "elvis" ;
5657 } ;
Original file line number Diff line number Diff line change 8484 } ;
8585 zipper = builder {
8686 name = "zipper" ;
87- version = "1.0.1 " ;
87+ version = "1.1.0 " ;
8888 src = fetchHex {
8989 pkg = "zipper" ;
90- version = "1.0.1 " ;
91- sha256 = "sha256-ah/T4fDMHR31ZCyaDOIXgDZBGwpclkKFHR2idr1zfC0 =" ;
90+ version = "1.1.0 " ;
91+ sha256 = "sha256-RkTIOug+88CYYMte1Zewx1n7vNZK1bAKYvUa5IrvdTU =" ;
9292 } ;
9393 beamDeps = [ ] ;
9494 } ;
@@ -104,11 +104,11 @@ let
104104 } ;
105105 katana_code = builder {
106106 name = "katana_code" ;
107- version = "2.1.0 " ;
107+ version = "2.1.1 " ;
108108 src = fetchHex {
109109 pkg = "katana_code" ;
110- version = "2.1.0 " ;
111- sha256 = "sha256-rju6yhh1EViPaWlan/IiUcssxnL9zMGAKJd5vdJRde8 =" ;
110+ version = "2.1.1 " ;
111+ sha256 = "sha256-BoDzNSW5qILm9NMCJRixXEb2SL17Db6GkAmA/hwpFAQ =" ;
112112 } ;
113113 beamDeps = [ ] ;
114114 } ;
@@ -152,21 +152,21 @@ let
152152 } ;
153153 getopt = builder {
154154 name = "getopt" ;
155- version = "1.0.2 " ;
155+ version = "1.0.3 " ;
156156 src = fetchHex {
157157 pkg = "getopt" ;
158- version = "1.0.2 " ;
159- sha256 = "sha256-oAKa6kMi+4KmH2h2ptnGbcmHi2y2H6oT3zGHOE/U6iY =" ;
158+ version = "1.0.3 " ;
159+ sha256 = "sha256-fgHekKxUDyFJT/cnkrHjFi05mWbrv8Z0tM5Sy49JMk8 =" ;
160160 } ;
161161 beamDeps = [ ] ;
162162 } ;
163163 elvis_core = builder {
164164 name = "elvis_core" ;
165- version = "3.2.3 " ;
165+ version = "4.0.0 " ;
166166 src = fetchHex {
167167 pkg = "elvis_core" ;
168- version = "3.2.3 " ;
169- sha256 = "sha256-oPDWgczZNVoWXDWXNnVVHxAhaHz5kvFcW/9mtmZO3gQ =" ;
168+ version = "4.0.0 " ;
169+ sha256 = "sha256-+i7jDyRkRm01mfsfz6phXImVn8UBmkVhnvett+1CC+U =" ;
170170 } ;
171171 beamDeps = [
172172 katana_code
You can’t perform that action at this time.
0 commit comments