diff options
author | Alan Pearce | 2019-12-13 15:15:19 +0100 |
---|---|---|
committer | Alan Pearce | 2019-12-13 15:15:19 +0100 |
commit | c978f917ebf52d76beac40eacdaed815f329615b (patch) | |
tree | 42ad43b79724a1edb8e32611b6afa6f7b56927d5 | |
parent | 2bd80eae7de79991c76d1b41690b99fd077ab080 (diff) | |
download | nixfiles-c978f917ebf52d76beac40eacdaed815f329615b.tar.lz nixfiles-c978f917ebf52d76beac40eacdaed815f329615b.tar.zst nixfiles-c978f917ebf52d76beac40eacdaed815f329615b.zip |
Add node2nix packages as overlay
-rw-r--r-- | user/overlays/extra-packages.nix | 3 | ||||
-rw-r--r-- | user/settings/javascript.nix | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/user/overlays/extra-packages.nix b/user/overlays/extra-packages.nix index fd0ed00e..552349f4 100644 --- a/user/overlays/extra-packages.nix +++ b/user/overlays/extra-packages.nix @@ -4,4 +4,7 @@ self: super: buildGoPackage = self.buildGo112Package; }; ripcord = super.callPackage ../packages/ripcord {}; + node2nixPackages = import ../packages/node2nix { + pkgs = super; + }; } diff --git a/user/settings/javascript.nix b/user/settings/javascript.nix index 7f7bc648..ee7a1521 100644 --- a/user/settings/javascript.nix +++ b/user/settings/javascript.nix @@ -3,9 +3,6 @@ let node = pkgs.nodejs-12_x; node10Packages = pkgs.nodePackages_10_x; - node2nixPackages = import ../packages/node2nix/default.nix { - inherit pkgs; - }; in { home.packages = (with pkgs; [ node @@ -37,8 +34,8 @@ in eslint_d prettier typescript - ]) ++ (with node2nixPackages; [ - node2nixPackages."pnpm-4.1.7" + ]) ++ (with pkgs.node2nixPackages; [ + pkgs.node2nixPackages."pnpm-4.1.7" bunyan netlify-cli |