Skip to content

Commit

Permalink
builds
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Apr 11, 2024
1 parent 7c0fdd6 commit da28308
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions pkgs/atomic-browser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fetchFromGitHub,
lib,
mkPnpmPackage,
nodePackages,
fetchPnpmDeps,
pnpmConfigHook,
}: let
Expand All @@ -26,10 +27,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 da28308

Please sign in to comment.