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