1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "scriptisto";
10 version = "2.2.0";
11
12 src = fetchFromGitHub {
13 owner = "igor-petruk";
14 repo = "scriptisto";
15 rev = "v${version}";
16 hash = "sha256-iaDdOFmi4kfcJSjXOcGAFG9i1SdB+K5Qz4+NDaVQALY=";
17 };
18
19 cargoHash = "sha256-20RRmbpJLHbSsa5OBk+IkyzZ4Jnss3nZ9izh7C6gmfI=";
20
21 nativeBuildInputs = [
22 installShellFiles
23 ];
24
25 postInstall = ''
26 installManPage man/*
27 '';
28
29 meta = with lib; {
30 description = "Language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages";
31 mainProgram = "scriptisto";
32 homepage = "https://github.com/igor-petruk/scriptisto";
33 changelog = "https://github.com/igor-petruk/scriptisto/releases/tag/${src.rev}";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ figsoda ];
36 };
37}