about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-17 09:25:13 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-18 09:05:35 -0800
commit97124a3f122087910d8e1751f560ece16527ce86 (patch)
tree29083154ea0eb1f3c80a1bc67f4c6bc0775bcd97 /packages
parentfish defaults are fine (diff)
downloadworld-97124a3f122087910d8e1751f560ece16527ce86.tar.gz
add support for overlays and add one for `sapi'
Diffstat (limited to 'packages')
-rw-r--r--packages/sapi/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/sapi/default.nix b/packages/sapi/default.nix
new file mode 100644
index 0000000..66df5c0
--- /dev/null
+++ b/packages/sapi/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, lib, ... }:
+
+stdenv.mkDerivation rec {
+  pname = "sapi";
+  version = "1.2.4";
+  src = fetchurl {
+    url =
+      "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/sapi-cli/darwin-amd64/v${version}/sapi";
+    sha256 = "sha256-Il/aqGzxtI84TdUAz4Fvw8RbAgGBZQPN3MZrOitrpVk=";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp $src $out/bin/sapi
+    chmod +x $out/bin/sapi
+  '';
+
+  dontUnpack = true;
+  dontStrip = true;
+
+  meta = with lib; {
+    description = "sapi command-line tool";
+    homepage = "https://go/sapi";
+    license = licenses.unfree;
+    platforms = [ "x86_64-darwin" ];
+  };
+}
+