use symlink in slides package
This commit is contained in:
parent
a15212f40b
commit
bf7b634f40
10
flake.nix
10
flake.nix
|
@ -50,11 +50,11 @@
|
||||||
packages.slides = pkgs.stdenvNoCC.mkDerivation rec {
|
packages.slides = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = "slides";
|
name = "slides";
|
||||||
|
|
||||||
src = ./.; # because slides/assets is a symlink
|
src = ./slides;
|
||||||
|
assets = ./assets;
|
||||||
|
|
||||||
npmRoot = "slides";
|
|
||||||
npmDeps = pkgs.fetchNpmDeps {
|
npmDeps = pkgs.fetchNpmDeps {
|
||||||
src = "${src}/slides";
|
inherit src;
|
||||||
hash = "sha256-GJ10or/LERFOsBG6CqnRFXnXSEZB7+0C5CV6t8X/Um8=";
|
hash = "sha256-GJ10or/LERFOsBG6CqnRFXnXSEZB7+0C5CV6t8X/Um8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,7 +64,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd slides
|
rm assets
|
||||||
|
ln -s $assets assets
|
||||||
|
|
||||||
npm run build
|
npm run build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue