btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ru / rust-script / package.nix
blobd9df9404fbca3969154c3a6c1e8426cb9f545538
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "rust-script";
5   version = "0.35.0";
7   src = fetchFromGitHub {
8     owner = "fornwall";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-uKmQgrbsFIY0XwrO16Urz3L76Gm2SxHW/CpHeCIUinM=";
12   };
14   cargoHash = "sha256-WekXZ1bn2bGZu80SsEHtTY8wLwBhJsnJLu/r5GPdGzM=";
16   # tests require network access
17   doCheck = false;
19   meta = with lib; {
20     description = "Run Rust files and expressions as scripts without any setup or compilation step";
21     mainProgram = "rust-script";
22     homepage = "https://rust-script.org";
23     changelog = "https://github.com/fornwall/rust-script/releases/tag/${version}";
24     license = with licenses; [ mit /* or */ asl20 ];
25     maintainers = with maintainers; [ figsoda ];
26   };