10 appName = "Postman.app";
14 sha256 = "sha256-Dy37gqClpV/9GzlpX6FjF+grDN/txbZO7G5BpEA2sms=";
19 sha256 = "sha256-gYlgrq3IyQtcecv9kuh1bHP1TVTPM8Apx2ZU5JLSSkQ=";
21 }.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
25 stdenvNoCC.mkDerivation {
26 inherit pname version meta;
29 url = "https://dl.pstmn.io/download/version/${version}/osx_${dist.arch}";
30 inherit (dist) sha256;
31 name = "${pname}-${version}.zip";
34 nativeBuildInputs = [ unzip ];
36 # Postman is notarized on macOS. Running the fixup phase will change the shell scripts embedded
37 # in the bundle, which causes the notarization check to fail on macOS 13+.
38 # See https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ for more information.
45 mkdir -p $out/{Applications/${appName},bin}
46 cp -R . $out/Applications/${appName}
47 cat > $out/bin/${pname} << EOF
49 open -na $out/Applications/${appName} --args "$@"
51 chmod +x $out/bin/${pname}