aboutsummaryrefslogtreecommitdiff
path: root/packages/sapi/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-28 13:17:45 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-28 13:17:45 -0800
commitbd23febefcd99aae0739ecc35195fc9781939171 (patch)
tree282508d9dfffaf3b25d5790865e665dc4604a975 /packages/sapi/default.nix
parentremove secrets and agenix since nothing uses them (diff)
downloadinfra-bd23febefcd99aae0739ecc35195fc9781939171.tar.gz
rename packages to pkgs
This is the correct convention.
Diffstat (limited to 'packages/sapi/default.nix')
-rw-r--r--packages/sapi/default.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/packages/sapi/default.nix b/packages/sapi/default.nix
deleted file mode 100644
index a939685..0000000
--- a/packages/sapi/default.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- stdenv,
- fetchurl,
- lib,
- ...
-}:
-let
- version = "1.2.4";
- sources = {
- x86_64-darwin = {
- url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/sapi-cli/darwin-amd64/v${version}/sapi";
- sha256 = "sha256-Il/aqGzxtI84TdUAz4Fvw8RbAgGBZQPN3MZrOitrpVk=";
- };
- aarch64-darwin = {
- url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/sapi-cli/darwin-arm64/v${version}/sapi";
- sha256 = "sha256-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx="; # Replace with actual SHA
- };
- };
-in
-stdenv.mkDerivation rec {
- pname = "sapi";
- inherit version;
-
- src = fetchurl {
- inherit (sources.${stdenv.hostPlatform.system})
- url
- sha256
- ;
- };
-
- 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"
- "aarch64-darwin"
- ];
- };
-}