Skip to content

Commit

Permalink
Build atomic-browser using fetchPnpmDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Apr 11, 2024
1 parent fff2776 commit d865b13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions pkgs/atomic-browser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,22 @@ stdenv.mkDerivation rec {
src = "${monorepoSrc}/browser";
pnpmDeps = fetchPnpmDeps {
inherit src pname;
hash = "";
hash = "sha256-sXXEgMBKImeGIYrFw17Uie6qTylKrJ9MNm8WJFRAi1A=";
};

nativeBuildInputs = [ pnpmConfigHook ];
nativeBuildInputs = [
pnpmConfigHook
nodePackages.pnpm
];

postBuild = ''
pnpm build
'';

installPhase = ''
cp -R ./data-browser/dist/ $out/
'';


# These 2 options are needed to work with pnpm workspaces, which atomic-browser is using
# https://github.com/nzbr/pnpm2nix-nzbr/issues/29#issuecomment-1918811838
Expand Down
4 changes: 2 additions & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
;


inherit (callPackage ./pkgs/build-support/node/fetch-pnpm-deps { }) fetchPnpmDeps;
inherit (callPackage ./pkgs/build-support/node/fetch-pnpm-deps { }) pnpmConfigHook;
inherit (callPackage ./build-support/node/fetch-pnpm-deps { }) fetchPnpmDeps;
inherit (callPackage ./build-support/node/fetch-pnpm-deps { }) pnpmConfigHook;
atomic-browser = callPackage ./atomic-browser {};
};
in
Expand Down

0 comments on commit d865b13

Please sign in to comment.