nodePackages.expo-cli: use .override

generate.sh seems to remove changes to node-env.nix, fortunately
.override seems to work so .overrideNodeAttrs does not actually
seem necessary. Not sure why I did not use it before.
This commit is contained in:
Jan Tojnar
2020-10-08 09:43:53 +02:00
parent 4f36ce4aff
commit 94447e06b4
2 changed files with 3 additions and 33 deletions
+1 -2
View File
@@ -59,8 +59,7 @@ let
buildInputs = [ pkgs.phantomjs2 ];
};
expo-cli = super."expo-cli".overrideNodeAttrs (attrs: {
__acceptOverrideNodeAttrsCanBeDroppedAnytime = true;
expo-cli = super."expo-cli".override (attrs: {
# The traveling-fastlane-darwin optional dependency aborts build on Linux.
dependencies = builtins.filter (d: d.packageName != "@expo/traveling-fastlane-${if stdenv.isLinux then "darwin" else "linux"}") attrs.dependencies;
});