Update 'default.nix'

This commit is contained in:
notgne2 2020-08-17 22:48:31 -07:00
parent 78e4921909
commit 45b3a2fdaa

View File

@ -10,11 +10,6 @@
, ...
}:
let
workingElmPackages = if elmPackages.elmVersion == "0.19.1" then
elmPackages
else
(import <unstable> {}).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";