Skip to content

Commit

Permalink
move fetch-pnpm-deps to callPackage's scope
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Apr 11, 2024
1 parent 768352f commit 49ec51e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@
mapAttrs dirToTest testDirs;

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

pkgsByName = import ./pkgs/by-name {
inherit (pkgs) lib;
inherit callPackage dream2nix pkgs;
inherit (callPackage ./pkgs/build-support/node/fetch-pnpm-deps { }) fetchPnpmDeps pnpmConfigHook;
};

explicitPkgs = import ./pkgs {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/atomic-browser/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
mkDerivation,
stdenv,
fetchFromGitHub,
lib,
nodePackages,
Expand All @@ -12,7 +12,7 @@
maintainers
;
in
mkDerivation rec {
stdenv.mkDerivation rec {
pname = "atomic-browser";
version = "v0.37.0";

Expand Down

0 comments on commit 49ec51e

Please sign in to comment.