1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "cargo-temp";
9 version = "0.3.3";
10
11 src = fetchFromGitHub {
12 owner = "yozhgoor";
13 repo = "cargo-temp";
14 rev = "v${version}";
15 hash = "sha256-71kAlZKSBnROZ8wXe4kQa8nNug5/hk6NKsqHoQU5pWc=";
16 };
17
18 cargoHash = "sha256-rHTEWc3JAnsz5z+NmTb84VSXHSR6nNlb5C+n9VxvnUQ=";
19
20 meta = with lib; {
21 description = "CLI tool that allow you to create a temporary new Rust project using cargo with already installed dependencies";
22 mainProgram = "cargo-temp";
23 homepage = "https://github.com/yozhgoor/cargo-temp";
24 changelog = "https://github.com/yozhgoor/cargo-temp/releases/tag/${src.rev}";
25 license = with licenses; [
26 mit # or
27 asl20
28 ];
29 maintainers = with maintainers; [
30 figsoda
31 matthiasbeyer
32 ];
33 };
34}