Skip to content

Instantly share code, notes, and snippets.

@mpontus
Created January 17, 2022 17:16
Show Gist options
  • Save mpontus/9ec8cd80851ebec5855af7863f0eb13f to your computer and use it in GitHub Desktop.
Save mpontus/9ec8cd80851ebec5855af7863f0eb13f to your computer and use it in GitHub Desktop.
# nodeComposition = pkgs.runCommand "node2nix" {
# src = ./.;
# buildInputs = [ pkgs.nodePackages.node2nix ];
# } ''
# mkdir -p $out
# node2nix \
# -i $src/package.json \
# -o $out/node-packages.nix \
# -c $out/default.nix \
# -e $out/node-env.nix \
# -d
# '';
# nodePackages = callPackage nodeComposition {};
# nodeEnv = callPackage ./node-env.nix {
# inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
# inherit pkgs nodejs;
# };
# nodePackages = callPackage ./node-packages.nix {
# inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
# inherit nodeEnv;
# };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment