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 {
|
||||
name = "frontend";
|
||||
src = ./.;
|
||||
buildInputs = [pkgs.yarn node-modules pkgs.nodejs];
|
||||
buildInputs = [
|
||||
pkgs.yarn
|
||||
node-modules
|
||||
pkgs.nodejs
|
||||
pkgs.nodePackages.typescript
|
||||
];
|
||||
buildPhase = ''
|
||||
# Set HOME to a writable directory
|
||||
export HOME=$TMPDIR
|
||||
|
||||
# Link the node_modules
|
||||
ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules
|
||||
|
||||
# Build the project
|
||||
${pkgs.yarn}/bin/yarn build
|
||||
'';
|
||||
installPhase = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user