beam26Packages.elvis-erlang: 3.2.6 -> 4.0.0 (#397598)

authored by Adam C. Stephens and committed by GitHub 40926cfd cb131ce6

+30 -29
+18 -17
pkgs/development/beam-modules/elvis-erlang/default.nix
··· 1 1 { 2 + buildRebar3, 2 3 fetchFromGitHub, 4 + fetchHex, 3 5 fetchgit, 4 - fetchHex, 6 + lib, 5 7 rebar3Relx, 6 - buildRebar3, 7 8 writeScript, 8 - lib, 9 9 }: 10 10 11 - let 12 - owner = "inaka"; 13 - repo = "elvis"; 14 - in 15 11 rebar3Relx rec { 16 12 releaseType = "escript"; 17 - # The package name "elvis" is already taken 18 13 pname = "elvis-erlang"; 19 - version = "3.2.6"; 14 + version = "4.0.0"; 15 + 20 16 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; 24 21 }; 22 + 25 23 beamDeps = builtins.attrValues ( 26 24 import ./rebar-deps.nix { 27 25 inherit fetchHex fetchgit fetchFromGitHub; 28 26 builder = buildRebar3; 29 27 } 30 28 ); 29 + 31 30 passthru.updateScript = writeScript "update.sh" '' 32 31 #!/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 34 33 35 34 set -euo pipefail 36 35 ··· 42 41 tmpdir=$(mktemp -d) 43 42 cp -R $(nix-build $nixpkgs --no-out-link -A elvis-erlang.src)/* "$tmpdir" 44 43 (cd "$tmpdir" && HOME=. rebar3 nix lock -o "$nix_path/rebar-deps.nix") 44 + nixfmt "$nix_path/rebar-deps.nix" 45 45 else 46 - echo "${repo} is already up-to-date" 46 + echo "elvis-erlang is already up-to-date" 47 47 fi 48 48 ''; 49 - meta = with lib; { 49 + 50 + meta = { 50 51 homepage = "https://github.com/inaka/elvis"; 51 52 description = "Erlang Style Reviewer"; 52 - platforms = platforms.unix; 53 - license = licenses.asl20; 53 + platforms = lib.platforms.unix; 54 + license = lib.licenses.asl20; 54 55 maintainers = with lib.maintainers; [ dlesl ]; 55 56 mainProgram = "elvis"; 56 57 };
+12 -12
pkgs/development/beam-modules/elvis-erlang/rebar-deps.nix
··· 84 84 }; 85 85 zipper = builder { 86 86 name = "zipper"; 87 - version = "1.0.1"; 87 + version = "1.1.0"; 88 88 src = fetchHex { 89 89 pkg = "zipper"; 90 - version = "1.0.1"; 91 - sha256 = "sha256-ah/T4fDMHR31ZCyaDOIXgDZBGwpclkKFHR2idr1zfC0="; 90 + version = "1.1.0"; 91 + sha256 = "sha256-RkTIOug+88CYYMte1Zewx1n7vNZK1bAKYvUa5IrvdTU="; 92 92 }; 93 93 beamDeps = [ ]; 94 94 }; ··· 104 104 }; 105 105 katana_code = builder { 106 106 name = "katana_code"; 107 - version = "2.1.0"; 107 + version = "2.1.1"; 108 108 src = fetchHex { 109 109 pkg = "katana_code"; 110 - version = "2.1.0"; 111 - sha256 = "sha256-rju6yhh1EViPaWlan/IiUcssxnL9zMGAKJd5vdJRde8="; 110 + version = "2.1.1"; 111 + sha256 = "sha256-BoDzNSW5qILm9NMCJRixXEb2SL17Db6GkAmA/hwpFAQ="; 112 112 }; 113 113 beamDeps = [ ]; 114 114 }; ··· 152 152 }; 153 153 getopt = builder { 154 154 name = "getopt"; 155 - version = "1.0.2"; 155 + version = "1.0.3"; 156 156 src = fetchHex { 157 157 pkg = "getopt"; 158 - version = "1.0.2"; 159 - sha256 = "sha256-oAKa6kMi+4KmH2h2ptnGbcmHi2y2H6oT3zGHOE/U6iY="; 158 + version = "1.0.3"; 159 + sha256 = "sha256-fgHekKxUDyFJT/cnkrHjFi05mWbrv8Z0tM5Sy49JMk8="; 160 160 }; 161 161 beamDeps = [ ]; 162 162 }; 163 163 elvis_core = builder { 164 164 name = "elvis_core"; 165 - version = "3.2.3"; 165 + version = "4.0.0"; 166 166 src = fetchHex { 167 167 pkg = "elvis_core"; 168 - version = "3.2.3"; 169 - sha256 = "sha256-oPDWgczZNVoWXDWXNnVVHxAhaHz5kvFcW/9mtmZO3gQ="; 168 + version = "4.0.0"; 169 + sha256 = "sha256-+i7jDyRkRm01mfsfz6phXImVn8UBmkVhnvett+1CC+U="; 170 170 }; 171 171 beamDeps = [ 172 172 katana_code