From e62ba2f97771c2ffd6cccbeac7370a4f4520bf0a Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 21 May 2023 10:22:34 -0400 Subject: scriptisto: init at 2.1.1 https://github.com/igor-petruk/scriptisto --- pkgs/development/tools/misc/scriptisto/default.nix | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/development/tools/misc/scriptisto/default.nix (limited to 'pkgs/development') diff --git a/pkgs/development/tools/misc/scriptisto/default.nix b/pkgs/development/tools/misc/scriptisto/default.nix new file mode 100644 index 0000000000000..9b7b287fce5db --- /dev/null +++ b/pkgs/development/tools/misc/scriptisto/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, installShellFiles +}: + +rustPlatform.buildRustPackage rec { + pname = "scriptisto"; + version = "2.1.1"; + + src = fetchFromGitHub { + owner = "igor-petruk"; + repo = "scriptisto"; + rev = "v${version}"; + hash = "sha256-WQSgN1iX26tPPaJXLtU5Eo8kFahT6g+gZKJEDT6zj1E="; + }; + + cargoHash = "sha256-trDf6N7PMjxlum8Rx2TxGePM6UPzMlTU6ATyGzmFoNc="; + + nativeBuildInputs = [ + installShellFiles + ]; + + postInstall = '' + installManPage man/* + ''; + + meta = with lib; { + description = "A language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages"; + 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 ]; + }; +} -- cgit 1.4.1