Skip to content

Commit

Permalink
move fetchPnpmDeps and pnpmConfigHook into atomic-browser/package.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Apr 11, 2024
1 parent 49ec51e commit 9e76b77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@
mapAttrs dirToTest testDirs;

callPackage = pkgs.newScope (
allPackages
// {inherit callPackage nixosTests;}
// {inherit (callPackage ./pkgs/build-support/node/fetch-pnpm-deps { }) fetchPnpmDeps pnpmConfigHook;}
allPackages // {inherit callPackage nixosTests;}
);

pkgsByName = import ./pkgs/by-name {
Expand Down
8 changes: 6 additions & 2 deletions pkgs/by-name/atomic-browser/package.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
callPackage,
stdenv,
fetchFromGitHub,
lib,
nodePackages,
fetchPnpmDeps,
pnpmConfigHook,
}: let
inherit
(lib)
licenses
maintainers
;
inherit
(callPackage ../../build-support/node/fetch-pnpm-deps { })
fetchPnpmDeps
pnpmConfigHook
;
in
stdenv.mkDerivation rec {
pname = "atomic-browser";
Expand Down

0 comments on commit 9e76b77

Please sign in to comment.