depot/third_party/nixpkgs/pkgs/development/tools/misc/scriptisto/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
896 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "scriptisto";
version = "2.2.0";
src = fetchFromGitHub {
owner = "igor-petruk";
repo = "scriptisto";
rev = "v${version}";
hash = "sha256-iaDdOFmi4kfcJSjXOcGAFG9i1SdB+K5Qz4+NDaVQALY=";
};
cargoHash = "sha256-LIOsl9qPKJr/ykbXeaHP6lNHGUMcw3omniSWx2FkF28=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage man/*
'';
meta = with lib; {
description = "Language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages";
mainProgram = "scriptisto";
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 ];
};
}