Skip to content

Commit

Permalink
Fixed pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Dec 19, 2024
1 parent aced2f0 commit bd8275c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crates/sync_npm_git_dependencies_with_nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
perSystem = { inputs', pkgs, self', lib, ... }: {

packages.sync-npm-git-dependencies-with-nix = let
craneLib = inputs.crane.mkLib pkgs;
# Uncomment this line when holonix gets updated to 24.11
# craneLib = inputs.crane.mkLib inputs'.pnpmnixpkgs.legacyPackages;
craneLib = inputs.crane.mkLib inputs'.pnpmnixpkgs.legacyPackages;

cratePath = ./.;

Expand Down
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
inputs = {
nixpkgs.follows = "holonix/nixpkgs";
pnpmnixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";

holonix.url = "github:holochain/holonix/main-0.4";
nixpkgs.follows = "holonix/nixpkgs";
rust-overlay.follows = "holonix/rust-overlay";
crane.follows = "holonix/crane";
};
Expand Down Expand Up @@ -230,7 +232,7 @@

packages.synchronized-pnpm = pkgs.symlinkJoin {
name = "synchronized-pnpm";
paths = [ inputs'.nixpkgs.legacyPackages.pnpm ];
paths = [ inputs'.pnpmnixpkgs.legacyPackages.pnpm ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pnpm --run ${self'.packages.sync-npm-git-dependencies-with-nix}/bin/sync-npm-git-dependencies-with-nix
Expand Down

0 comments on commit bd8275c

Please sign in to comment.