summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-22 11:39:33 -0400
committerGitHub <noreply@github.com>2023-05-22 11:39:33 -0400
commit08a3f551b8750c6e45518d1d45c906026c73e636 (patch)
tree0ced78159cfcc2f4e50dd4db9b5aa6e8f368ea0e /pkgs/development
parentbcacb9f40428a0c70b4373dc3ab77b543d1244a8 (diff)
parente62ba2f97771c2ffd6cccbeac7370a4f4520bf0a (diff)
Merge pull request #233243 from figsoda/script
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/misc/scriptisto/default.nix35
1 files changed, 35 insertions, 0 deletions
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 ];
+  };
+}