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