Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- λ cat ~/.nixpkgs/config.nix
- { pkgs }:
- {
- packageOverrides = super: {
- nix-npm-install = pkgs.writeScriptBin "nix-npm-install" ''
- #!/usr/bin/env bash
- tempdir="/tmp/nix-npm-install/$1"
- mkdir -p $tempdir
- pushd $tempdir
- # note the differences here:
- ${super.nodePackages.node2nix}/bin/node2nix -8 --input <( echo "[\"$1\"]")
- nix-env --install --file .
- popd
- '';
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement