diff --git a/flake.lock b/flake.lock index e4430fa7d..9fa3375b4 100644 --- a/flake.lock +++ b/flake.lock @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1691080431, - "narHash": "sha256-UiNlqQ0t9g7T/P/P8vWV/LZXxF/Mm5kV1e8WqncoWE4=", + "lastModified": 1693317958, + "narHash": "sha256-JTk5WY2qgQxZJIM13B696p48+1OSlmNUHXAWVOIGTHc=", "owner": "erictapen", "repo": "nixpkgs", - "rev": "1b8435e4c7386212d892e057620c8c167ae17adc", + "rev": "6f43a2f938963cfebc376da771edfa0953585b4e", "type": "github" }, "original": { diff --git a/js/default.nix b/js/default.nix index ee392f763..71eecfbbb 100644 --- a/js/default.nix +++ b/js/default.nix @@ -6,6 +6,13 @@ mkYarnPackage rec { exclude = [ (filter.matchExt "nix") ]; }; + # Somehow $out/deps/mobilizon/node_modules ends up only containing a .bin + # directory otherwise. + yarnPostBuild = '' + rm -rf $out/deps/mobilizon/node_modules + ln -s $out/node_modules $out/deps/mobilizon/node_modules + ''; + buildPhase = '' runHook preBuild