2023-05-21 14:22:34 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "scriptisto";
|
2024-06-09 04:10:40 +00:00
|
|
|
version = "2.2.0";
|
2023-05-21 14:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "igor-petruk";
|
|
|
|
repo = "scriptisto";
|
|
|
|
rev = "v${version}";
|
2024-06-09 04:10:40 +00:00
|
|
|
hash = "sha256-iaDdOFmi4kfcJSjXOcGAFG9i1SdB+K5Qz4+NDaVQALY=";
|
2023-05-21 14:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-06-09 04:10:40 +00:00
|
|
|
cargoHash = "sha256-LIOsl9qPKJr/ykbXeaHP6lNHGUMcw3omniSWx2FkF28=";
|
2023-05-21 14:22:34 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage man/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "scriptisto";
|
2023-05-21 14:22:34 +00:00
|
|
|
homepage = "https://github.com/igor-petruk/scriptisto";
|
|
|
|
changelog = "https://github.com/igor-petruk/scriptisto/releases/tag/${src.rev}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|