{ 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" ]; }; }