Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an overlay for node packages with coffeescript #21

Merged
merged 2 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ let
override = rec {
# These packages will hide packages in the top level nixpkgs
swift = self.callPackage ./pkgs/swift { };

# Add our additional node packages
nodePackages = super.nodePackages // self.callPackage ./pkgs/node-packages { };
};
in {
replitPackages = rec {
Expand Down
20 changes: 20 additions & 0 deletions pkgs/node-packages/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file has been generated by node2nix 1.9.0. Do not edit!

{ pkgs ? import <nixpkgs> {
inherit system;
}
, system ? builtins.currentSystem
, nodejs ? pkgs."nodejs-12_x"
}:

let
nodeEnv = import ./node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
}
4 changes: 4 additions & 0 deletions pkgs/node-packages/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
nix-shell -p nodePackages.node2nix --run 'node2nix -i node-packages.json'
nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt .'

Loading