Commit 1f24ebb4 authored by superherointj's avatar superherointj Committed by Yt
Browse files

elixir-ls: rename elixir_ls to elixir-ls

parent 862746a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ You will need to run the build process once to fix the hash to correspond to you

###### FOD {#fixed-output-derivation}

A fixed output derivation will download mix dependencies from the internet. To ensure reproducibility, a hash will be supplied. Note that mix is relatively reproducible. An FOD generating a different hash on each run hasn't been observed (as opposed to npm where the chances are relatively high). See [elixir_ls](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/beam-modules/elixir-ls/default.nix) for a usage example of FOD.
A fixed output derivation will download mix dependencies from the internet. To ensure reproducibility, a hash will be supplied. Note that mix is relatively reproducible. An FOD generating a different hash on each run hasn't been observed (as opposed to npm where the chances are relatively high). See [elixir-ls](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/beam-modules/elixir-ls/default.nix) for a usage example of FOD.

Practical steps

+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ let
      # Remove old versions of elixir, when the supports fades out:
      # https://hexdocs.pm/elixir/compatibility-and-deprecations.html

      elixir_ls = callPackage ./elixir-ls { inherit elixir fetchMixDeps mixRelease; };
      elixir-ls = callPackage ./elixir-ls { inherit elixir fetchMixDeps mixRelease; };

      lfe = lfe_1_3;
      lfe_1_3 = lib'.callLFE ../interpreters/lfe/1.3.nix { inherit erlang buildRebar3 buildHex; };
+3 −3
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ mixRelease {
    sha256 = pinData.depsSha256;
  };

  # elixir_ls is an umbrella app
  # elixir-ls is an umbrella app
  # override configurePhase to not skip umbrella children
  configurePhase = ''
    runHook preConfigure
@@ -31,12 +31,12 @@ mixRelease {
    runHook postConfigure
  '';

  # elixir_ls require a special step for release
  # elixir-ls require a special step for release
  # compile and release need to be performed together because
  # of the no-deps-check requirement
  buildPhase = ''
    runHook preBuild
    mix do compile --no-deps-check, elixir_ls.release
    mix do compile --no-deps-check, elixir-ls.release
    runHook postBuild
  '';

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ if ("$latest_version" === "$current_version") {
      .\"sha256\" = \"$tarball_hash\" | \
      .\"depsSha256\" = \"\"" $directory/pin.json | sponge $directory/pin.json

  const new_mix_hash = $(nix-build -A elixir_ls.mixFodDeps 2>&1 | \
  const new_mix_hash = $(nix-build -A elixir-ls.mixFodDeps 2>&1 | \
    tail -n 1 | \
    sd '\s+got:\s+' '')

+2 −0
Original line number Diff line number Diff line
@@ -416,6 +416,8 @@ mapAliases ({

  electrum-dash = throw "electrum-dash has been removed from nixpkgs as the project is abandoned"; # Added 2022-01-01

  elixir_ls = elixir-ls; # Added 2023-03-20

  # Emacs
  emacs28NativeComp = emacs28; # Added 2022-06-08
  emacs28Packages = emacs28.pkgs; # Added 2021-10-04
Loading