Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 35 lines 866 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, installShellFiles 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "scriptisto"; 9 version = "2.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "igor-petruk"; 13 repo = "scriptisto"; 14 rev = "v${version}"; 15 hash = "sha256-WQSgN1iX26tPPaJXLtU5Eo8kFahT6g+gZKJEDT6zj1E="; 16 }; 17 18 cargoHash = "sha256-trDf6N7PMjxlum8Rx2TxGePM6UPzMlTU6ATyGzmFoNc="; 19 20 nativeBuildInputs = [ 21 installShellFiles 22 ]; 23 24 postInstall = '' 25 installManPage man/* 26 ''; 27 28 meta = with lib; { 29 description = "A language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages"; 30 homepage = "https://github.com/igor-petruk/scriptisto"; 31 changelog = "https://github.com/igor-petruk/scriptisto/releases/tag/${src.rev}"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ figsoda ]; 34 }; 35}