9 stdenvNoCC.mkDerivation rec {
14 # Use the tarball until https://github.com/mas-cli/mas/issues/452 is fixed.
15 # Even though it looks like an OS/arch specific build it is actually a universal binary.
16 url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas-${version}.monterey.bottle.tar.gz";
17 sha256 = "0q4skdhymgn5xrwafyisfshx327faia682yv83mf68r61m2jl10d";
20 nativeBuildInputs = [ installShellFiles ];
23 install -D './${version}/bin/mas' "$out/bin/mas"
24 installShellCompletion --cmd mas --bash './${version}/etc/bash_completion.d/mas'
28 version = testers.testVersion {
30 command = "mas version";
35 description = "Mac App Store command line interface";
36 homepage = "https://github.com/mas-cli/mas";
37 license = licenses.mit;
38 maintainers = with maintainers; [ steinybot zachcoyle ];
39 platforms = [ "x86_64-darwin" "aarch64-darwin" ];