mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
commit
e702a314d2
44
pkgs/os-specific/darwin/mas/default.nix
Normal file
44
pkgs/os-specific/darwin/mas/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, libarchive
|
||||
, p7zip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mas";
|
||||
version = "1.8.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas.pkg";
|
||||
sha256 = "W/wgg+ETeJPoZ7MoVGH2uJzQiZMLIy3n1JYKUloc3ZU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libarchive p7zip ];
|
||||
|
||||
unpackPhase = ''
|
||||
7z x $src
|
||||
bsdtar -xf Payload~
|
||||
'';
|
||||
|
||||
doBuild = false;
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -29540,6 +29540,8 @@ in
|
|||
|
||||
martyr = callPackage ../development/libraries/martyr { };
|
||||
|
||||
mas = callPackage ../os-specific/darwin/mas { };
|
||||
|
||||
moltengamepad = callPackage ../misc/drivers/moltengamepad { };
|
||||
|
||||
openzwave = callPackage ../development/libraries/openzwave { };
|
||||
|
|
Loading…
Reference in a new issue