diff --git a/nix/tui.nix b/nix/tui.nix index 93973019f..70eb67f94 100644 --- a/nix/tui.nix +++ b/nix/tui.nix @@ -4,7 +4,7 @@ let src = ../ui-tui; npmDeps = pkgs.fetchNpmDeps { inherit src; - hash = "sha256-+EhRRuvXi5hJupseHblF+MGxs84ijRMIH4qt5+2yYi8="; + hash = "sha256-zsUPmbC6oMUO10EhS3ptvDjwlfpCSEmrkjyeORw7fac="; }; packageJson = builtins.fromJSON (builtins.readFile (src + "/package.json")); @@ -18,6 +18,11 @@ pkgs.buildNpmPackage { doCheck = false; + postPatch = '' + # fetchNpmDeps strips the trailing newline; match it so the diff passes + sed -i -z 's/\n$//' package-lock.json + ''; + installPhase = '' runHook preInstall