Fix nix flake
This commit is contained in:
parent
151824233b
commit
a0f7ed045c
13
flake.nix
13
flake.nix
@ -23,9 +23,20 @@
|
|||||||
frontend = pkgs.stdenv.mkDerivation {
|
frontend = pkgs.stdenv.mkDerivation {
|
||||||
name = "frontend";
|
name = "frontend";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildInputs = [pkgs.yarn node-modules pkgs.nodejs];
|
buildInputs = [
|
||||||
|
pkgs.yarn
|
||||||
|
node-modules
|
||||||
|
pkgs.nodejs
|
||||||
|
pkgs.nodePackages.typescript
|
||||||
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
# Set HOME to a writable directory
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
|
||||||
|
# Link the node_modules
|
||||||
ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules
|
ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules
|
||||||
|
|
||||||
|
# Build the project
|
||||||
${pkgs.yarn}/bin/yarn build
|
${pkgs.yarn}/bin/yarn build
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user