Merge pull request #126634 from zachcoyle/mas-1.8.2

mas: 1.8.1 -> 1.8.2
This commit is contained in:
Sandro 2021-06-12 18:19:27 +02:00 committed by GitHub
commit f0acff31d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,11 @@
stdenv.mkDerivation rec {
pname = "mas";
version = "1.8.1";
version = "1.8.2";
src = fetchurl {
url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas.pkg";
sha256 = "W/wgg+ETeJPoZ7MoVGH2uJzQiZMLIy3n1JYKUloc3ZU=";
sha256 = "HlLQKBVIYKanS6kjkbYdabBi1T0irxE6fNd2H6mDKe4=";
};
nativeBuildInputs = [ libarchive p7zip ];
@ -25,13 +25,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
cp -r ./bin $out
cp -r ./Frameworks $out
'';
postFixup = ''
install_name_tool -change @rpath/MasKit.framework/Versions/A/MasKit $out/Frameworks/MasKit.framework/Versions/A/MasKit $out/bin/mas
install_name_tool -change @rpath/Commandant.framework/Commandant $out/Frameworks/MasKit.framework/Versions/A/Frameworks/Commandant.framework/Versions/A/Commandant $out/bin/mas
cp -r ./usr/local/bin $out
'';
meta = with lib; {