use workaround for mkYarnPackage patch

flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:erictapen/nixpkgs/1b8435e4c7386212d892e057620c8c167ae17adc' (2023-08-03)
  → 'github:erictapen/nixpkgs/6f43a2f938963cfebc376da771edfa0953585b4e' (2023-08-29)
This commit is contained in:
778a69cd 2023-08-29 16:09:45 +02:00
parent f7fb0283cb
commit 5e4a36b4e4
2 changed files with 10 additions and 3 deletions

View file

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1691080431, "lastModified": 1693317958,
"narHash": "sha256-UiNlqQ0t9g7T/P/P8vWV/LZXxF/Mm5kV1e8WqncoWE4=", "narHash": "sha256-JTk5WY2qgQxZJIM13B696p48+1OSlmNUHXAWVOIGTHc=",
"owner": "erictapen", "owner": "erictapen",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1b8435e4c7386212d892e057620c8c167ae17adc", "rev": "6f43a2f938963cfebc376da771edfa0953585b4e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -6,6 +6,13 @@ mkYarnPackage rec {
exclude = [ (filter.matchExt "nix") ]; 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 = '' buildPhase = ''
runHook preBuild runHook preBuild