project_init 0.1.2

Initialize projects from a template. Fast
Documentation
{ stdenv, fetchFromGitHub, rustPlatform}:

rustPlatform.buildRustPackage rec {
  name = "pi-${version}";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "vmchale";
    repo = "project-init";
    rev = "${version}";
    sha256 = "1hwn6xkhayld23zjr11cv5rwa0a3rfxq2lri1bfkkw1q8h6dis9d";
    };

  depsSha256 = "1lg1jh6f9w28i94vaj62r859g6raalxmxabvw7av6sqr0hr56p05";

  installPhase = ''
    mkdir -p $out/bin
    cp -p target/release/tw $out/bin/
  '';

  meta = with stdenv.lib; {
    description = "Project initialization from templates";
    homepage = https://github.com/vmchale/project-init;
    license = licenses.bsd3;
    platforms = platforms.all;
  };
}