diff --git a/pkgs/atomic-browser/default.nix b/pkgs/atomic-browser/default.nix index cad71ae1..4442fa15 100644 --- a/pkgs/atomic-browser/default.nix +++ b/pkgs/atomic-browser/default.nix @@ -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 diff --git a/pkgs/default.nix b/pkgs/default.nix index aade196f..fda24fe7 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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