default.nix 375 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
with (import <nixpkgs> {});
let
  nodejs-with-packages = with nodePackages; [
    bower
    yarn
  ]; in
stdenv.mkDerivation rec {
  name = "env";
  env = buildEnv {
    name = name;
    paths = buildInputs;
  };
  buildInputs = [
    nodejs-with-packages
    yarn
    yarn2nix
  ];
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup
    touch $out
  '';
}