From da2c5d1408c6b077f8f73f0dba5d5aa7fe9489de Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 19 Sep 2024 03:28:19 +0300 Subject: [PATCH] build: fix flake package --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 05e2814..14087e0 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,7 @@ src = ./.; - outputHash = "sha256-XRcH8KOtGsWzpaKIKUy/yTm6cCfzFjehNMTCh+m4PmI="; + outputHash = "sha256-M6Kircn1s9eMhvnB5u1fzYxVOalFUhE5KskIOs8BPP0="; outputHashAlgo = "sha256"; outputHashMode = "recursive"; @@ -57,7 +57,7 @@ src = ./.; - nativeBuildInputs = [pkgs.makeBinaryWrapper]; + nativeBuildInputs = [pkgs.makeBinaryWrapper pkgs.rsync]; buildInputs = [pkgs.bun]; PUBLIC_BASE_URL="http://localhost:5173"; @@ -65,9 +65,10 @@ configurePhase = '' runHook preConfigure - cp -R ${config.packages.gazesys-modules} node_modules + cp -R --no-preserve=ownership ${config.packages.gazesys-modules} node_modules + find node_modules -type d -exec chmod 755 {} \; substituteInPlace node_modules/.bin/vite \ - --replace "/usr/bin/env node" "${pkgs.nodejs-slim_latest}/bin/node" + --replace-fail "/usr/bin/env node" "${pkgs.nodejs-slim_latest}/bin/node" runHook postConfigure ''; buildPhase = ''