Skip to content

Commit

Permalink
Bump nix npmdepshash (#853)
Browse files Browse the repository at this point in the history
* bump npmDepsHash in flake-module.nix

* patchShebangs for javascript packages

This is for the tsc in the cli workspace package.

---------

Co-authored-by: Nikos Kontakis <wirednkod@gmail.com>
  • Loading branch information
rgoulter and wirednkod authored Mar 27, 2023
1 parent d13975e commit 2e22830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
default = pkgs.buildNpmPackage rec {
# root hash (hash of hashes of each dependnecies)
# this should be updated on each dependency change (use `prefetch-npm-deps` to get new hash)
npmDepsHash = "sha256-3eW2oNTyzIZ3PRf8Cda40qqaG5cHoxMZtZVU1ImvcLA=";
npmDepsHash = "sha256-hsQ7Z0/wU8FPNWeR68N9NnbvW95Ux1gHwk+MoTQYBRE=";

pname = "zombienet";
name = pname;
Expand Down Expand Up @@ -45,6 +45,9 @@
#npmFlags = "--verbose";

# unfortunately current fetcher(written in rust) has bugs for workspaes, so this is ugly workaround https://github.com/NixOS/nixpkgs/issues/219673
preBuild = ''
patchShebangs packages
'';
postBuild = ''
echo "Generating `dist` of `workspace`"
npm run build --workspace=packages/utils
Expand Down

0 comments on commit 2e22830

Please sign in to comment.