lol

elixir-ls: 0.14.5 -> 0.14.6

authored by

happysalada and committed by
Yt
0d0f783d 9ab371d5

+5 -42
+5 -6
pkgs/development/beam-modules/elixir-ls/default.nix
··· 1 - { lib, elixir, fetchFromGitHub, fetchMixDeps, mixRelease }: 2 # Based on the work of Hauleth 3 # None of this would have happened without him 4 5 let 6 pname = "elixir-ls"; 7 - pinData = lib.importJSON ./pin.json; 8 - version = pinData.version; 9 src = fetchFromGitHub { 10 owner = "elixir-lsp"; 11 repo = "elixir-ls"; 12 rev = "v${version}"; 13 - sha256 = pinData.sha256; 14 fetchSubmodules = true; 15 }; 16 in ··· 20 mixFodDeps = fetchMixDeps { 21 pname = "mix-deps-${pname}"; 22 inherit src version elixir; 23 - sha256 = pinData.depsSha256; 24 }; 25 26 # elixir-ls is an umbrella app ··· 71 platforms = platforms.unix; 72 maintainers = teams.beam.members; 73 }; 74 - passthru.updateScript = ./update.sh; 75 }
··· 1 + { lib, elixir, fetchFromGitHub, fetchMixDeps, mixRelease, nix-update-script }: 2 # Based on the work of Hauleth 3 # None of this would have happened without him 4 5 let 6 pname = "elixir-ls"; 7 + version = "0.14.6"; 8 src = fetchFromGitHub { 9 owner = "elixir-lsp"; 10 repo = "elixir-ls"; 11 rev = "v${version}"; 12 + hash = "sha256-O977DZLWPyLafIaOTPZKI4MOtK9E9TDProf2xyk05aI"; 13 fetchSubmodules = true; 14 }; 15 in ··· 19 mixFodDeps = fetchMixDeps { 20 pname = "mix-deps-${pname}"; 21 inherit src version elixir; 22 + sha256 = "sha256-jF1Plkz1D85aWkiNgeBlJmHndhr7us+8+m/gMkXHvDw="; 23 }; 24 25 # elixir-ls is an umbrella app ··· 70 platforms = platforms.unix; 71 maintainers = teams.beam.members; 72 }; 73 + passthru.updateScript = nix-update-script { }; 74 }
-5
pkgs/development/beam-modules/elixir-ls/pin.json
··· 1 - { 2 - "version": "0.14.5", 3 - "sha256": "sha256-F0c1vyeie8sf11SHfDKb8v1DZ5No3Rr3PPj3jMg0veg=", 4 - "depsSha256": "sha256-/lKZ9Ns32A/elJTez72mH2tZ7ujwEX9p4FIKHpfGq78=" 5 - }
···
-31
pkgs/development/beam-modules/elixir-ls/update.sh
··· 1 - #!/usr/bin/env nix-shell 2 - #! nix-shell -i oil -p jq sd nix-prefetch-github ripgrep 3 - 4 - # TODO set to `verbose` or `extdebug` once implemented in oil 5 - set -x 6 - 7 - const directory = $(dirname $0 | xargs realpath) 8 - const owner = "elixir-lsp" 9 - const repo = "elixir-ls" 10 - const latest_rev = $(curl -q https://api.github.com/repos/${owner}/${repo}/releases/latest | \ 11 - jq -r '.tag_name') 12 - const latest_version = $(echo $latest_rev | sd 'v' '') 13 - const current_version = $(jq -r '.version' $directory/pin.json) 14 - if ("$latest_version" === "$current_version") { 15 - echo "elixir-ls is already up-to-date" 16 - return 0 17 - } else { 18 - const tarball_meta = $(nix-prefetch-github $owner $repo --rev "$latest_rev") 19 - const tarball_hash = "sha256-$(echo $tarball_meta | jq -r '.sha256')" 20 - const sha256s = $(rg '"sha256-.+"' $directory/default.nix | sd '.+"(.+)";' '$1' ) 21 - 22 - jq ".version = \"$latest_version\" | \ 23 - .\"sha256\" = \"$tarball_hash\" | \ 24 - .\"depsSha256\" = \"\"" $directory/pin.json | sponge $directory/pin.json 25 - 26 - const new_mix_hash = $(nix-build -A elixir-ls.mixFodDeps 2>&1 | \ 27 - tail -n 1 | \ 28 - sd '\s+got:\s+' '') 29 - 30 - jq ".depsSha256 = \"$new_mix_hash\"" $directory/pin.json | sponge $directory/pin.json 31 - }
···