use symlink in slides package

This commit is contained in:
Laureηt 2024-10-11 20:53:52 +02:00
parent a15212f40b
commit bf7b634f40
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk

View file

@ -50,11 +50,11 @@
packages.slides = pkgs.stdenvNoCC.mkDerivation rec {
name = "slides";
src = ./.; # because slides/assets is a symlink
src = ./slides;
assets = ./assets;
npmRoot = "slides";
npmDeps = pkgs.fetchNpmDeps {
src = "${src}/slides";
inherit src;
hash = "sha256-GJ10or/LERFOsBG6CqnRFXnXSEZB7+0C5CV6t8X/Um8=";
};
@ -64,7 +64,9 @@
];
buildPhase = ''
cd slides
rm assets
ln -s $assets assets
npm run build
'';