10 appName = "Postman.app";
14 sha256 = "sha256-V+JLXl12DnwZlPF0qNs2lQqRpWbSDiPXDTtl4FGcZcM=";
19 sha256 = "sha256-l7J4Rrq+kUyk+0Chq5qo50K1VXC/7E3FC/hQ1DQ0PGA=";
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}