Commit 8fbb3244 authored by dish's avatar dish
Browse files

elmPackages.elm-upgrade: migrate from internal node-packages.nix set

parent f6bbac2d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@ lib.makeScope pkgs.newScope (

      elm-test = callPackage ./packages/elm-test { };

      elm-upgrade = callPackage ./packages/elm-upgrade { };

      lamdera = callPackage ./packages/lamdera { };
    }
  )
+39 −0
Original line number Diff line number Diff line
{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  nix-update-script,
}:

buildNpmPackage (finalAttrs: {
  pname = "elm-upgrade";
  version = "0.19.8";

  src = fetchFromGitHub {
    owner = "avh4";
    repo = "elm-upgrade";
    tag = "v${finalAttrs.version}";
    hash = "sha256-frMh8PO9pDYTH03WlDUHuP3QPAz/oubxMYCcMlCU1MQ=";
  };

  npmDepsHash = "sha256-QP2dlsZb43/p3+P+uNPn3hd3zbKtlYRVl0ABXbv12V4=";

  dontNpmBuild = true;

  npmFlags = [ "--ignore-scripts" ];

  postInstall = ''
    rm -rf $out/lib/node_modules/elm-upgrade/node_modules/.bin
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/avh4/elm-upgrade/blob/v${finalAttrs.version}/CHANGELOG.md";
    description = "Upgrade your Elm 0.18 projects to Elm 0.19";
    homepage = "https://github.com/avh4/elm-upgrade";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pyrox0 ];
    mainProgram = "elm-upgrade";
  };
})
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ with self;
with elmLib;
{
  inherit (nodePkgs)
    elm-upgrade
    elm-xref
    elm-git-install
    ;
+0 −1
Original line number Diff line number Diff line
[
  "elm-upgrade",
  "elm-verify-examples",
  "elm-xref",
  "create-elm-app",
+0 −416

File changed.

Preview size limit exceeded, changes collapsed.