From 45b3a2fdaa1e9a9ee9d961ac2a3a79d3963d72ec Mon Sep 17 00:00:00 2001 From: notgne2 Date: Mon, 17 Aug 2020 22:48:31 -0700 Subject: [PATCH] Update 'default.nix' --- default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index 3d83fe7..de9a7d7 100644 --- a/default.nix +++ b/default.nix @@ -10,11 +10,6 @@ , ... }: let - workingElmPackages = if elmPackages.elmVersion == "0.19.1" then - elmPackages - else - (import {}).elmPackages; - pnpm2nix = pkgs.callPackage ( builtins.fetchGit { url = "https://github.com/nix-community/pnpm2nix.git"; @@ -222,7 +217,7 @@ let src = elmCleanSource src; - buildInputs = with workingElmPackages; [ elm nodeSource ]; + buildInputs = with elmPackages; [ elm nodeSource ]; patchPhase = '' ln -sf ${nodeSource}/node_modules . @@ -248,7 +243,7 @@ let export NODE_PATH=$PWD/node_modules ''; - buildPhase = workingElmPackages.fetchElmDeps { + buildPhase = elmPackages.fetchElmDeps { elmPackages = import (src + "/elm-srcs.nix"); registryDat = src + "/registry.dat"; elmVersion = "0.19.1";