mas: 1.8.2 -> 1.8.6
This commit is contained in:
parent
14260bb7ba
commit
e55eb3d376
@ -1,38 +1,41 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, libarchive
|
||||
, p7zip
|
||||
, installShellFiles
|
||||
, testVersion
|
||||
, mas
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "mas";
|
||||
version = "1.8.2";
|
||||
version = "1.8.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas.pkg";
|
||||
sha256 = "HlLQKBVIYKanS6kjkbYdabBi1T0irxE6fNd2H6mDKe4=";
|
||||
# Use the tarball until https://github.com/mas-cli/mas/issues/452 is fixed.
|
||||
# Even though it looks like an OS/arch specific build it is actually a universal binary.
|
||||
url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas-${version}.monterey.bottle.tar.gz";
|
||||
sha256 = "0q4skdhymgn5xrwafyisfshx327faia682yv83mf68r61m2jl10d";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libarchive p7zip ];
|
||||
|
||||
unpackPhase = ''
|
||||
7z x $src
|
||||
bsdtar -xf Payload~
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./usr/local/bin $out
|
||||
install -D './${version}/bin/mas' "$out/bin/mas"
|
||||
installShellCompletion --cmd mas --bash './${version}/etc/bash_completion.d/mas'
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
version = testVersion {
|
||||
package = mas;
|
||||
command = "mas version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mac App Store command line interface";
|
||||
homepage = "https://github.com/mas-cli/mas";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ zachcoyle ];
|
||||
platforms = platforms.darwin;
|
||||
maintainers = with maintainers; [ steinybot zachcoyle ];
|
||||
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user