File tree 1 file changed +26
-9
lines changed
1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change 2
2
lib ,
3
3
stdenvNoCC ,
4
4
fetchurl ,
5
- installShellFiles ,
5
+ libarchive ,
6
+ p7zip ,
6
7
testers ,
7
8
mas ,
8
9
} :
9
10
10
11
stdenvNoCC . mkDerivation rec {
11
12
pname = "mas" ;
12
- version = "1.8.6 " ;
13
+ version = "1.9.0 " ;
13
14
14
15
src = fetchurl {
15
- # Use the tarball until https://github.com/mas-cli/mas/issues/452 is fixed.
16
- # Even though it looks like an OS/arch specific build it is actually a universal binary.
17
- url = "https://github.com/mas-cli/mas/releases/download/v${ version } /mas-${ version } .monterey.bottle.tar.gz" ;
18
- sha256 = "0q4skdhymgn5xrwafyisfshx327faia682yv83mf68r61m2jl10d" ;
16
+ url = "https://github.com/mas-cli/mas/releases/download/v${ version } /mas-${ version } .pkg" ;
17
+ hash = "sha256-MiSrCHLby3diTAzDPCYX1ZwdmzcHwOx/UJuWrlRJe54=" ;
19
18
} ;
20
19
21
- nativeBuildInputs = [ installShellFiles ] ;
20
+ nativeBuildInputs = [
21
+ libarchive
22
+ p7zip
23
+ ] ;
24
+
25
+ unpackPhase = ''
26
+ runHook preUnpack
27
+
28
+ 7z x $src
29
+ bsdtar -xf Payload~
30
+
31
+ runHook postUnpack
32
+ '' ;
33
+
34
+ dontBuild = true ;
22
35
23
36
installPhase = ''
24
- install -D './${ version } /bin/mas' "$out/bin/mas"
25
- installShellCompletion --cmd mas --bash './${ version } /etc/bash_completion.d/mas'
37
+ runHook preInstall
38
+
39
+ mkdir -p $out/bin
40
+ cp mas $out/bin
41
+
42
+ runHook postInstall
26
43
'' ;
27
44
28
45
passthru . tests = {
You can’t perform that action at this time.
0 commit comments