File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 88 testers ,
99 mas ,
1010} :
11-
12- stdenvNoCC . mkDerivation rec {
11+ stdenvNoCC . mkDerivation ( finalAttrs : {
1312 pname = "mas" ;
14- version = "4 .1.0" ;
13+ version = "5 .1.0" ;
1514
1615 src =
1716 let
17+ # nix store prefetch-file https://github.com/mas-cli/mas/releases/download/v$VERSION/mas-$VERSION-$ARCH.pkg
1818 sources =
1919 {
2020 x86_64-darwin = {
2121 arch = "x86_64" ;
22- hash = "sha256-9GkAV2gitqtZ7Ew/QVXDj3tDTbh5uwBxPtYdLSnucZE =" ;
22+ hash = "sha256-G7o0nHsf6Ay2k3quMs45KH9h4yEpbvyGPm/u86naWcM =" ;
2323 } ;
2424 aarch64-darwin = {
2525 arch = "arm64" ;
26- hash = "sha256-8zaZOPOCyLHOFmHhviJXIy5SB5trqQM/MFHhB9ygilQ =" ;
26+ hash = "sha256-XZM0YeFLHYhoEqQLaG1Jz3OWcT9DILqFEcgqI3yvDk8 =" ;
2727 } ;
2828 }
2929 . ${ stdenvNoCC . hostPlatform . system }
3030 or ( throw "Unsupported system: ${ stdenvNoCC . hostPlatform . system } " ) ;
3131 in
3232 fetchurl {
33- url = "https://github.com/mas-cli/mas/releases/download/v${ version } /mas-${ version } -${ sources . arch } .pkg" ;
33+ url = "https://github.com/mas-cli/mas/releases/download/v${ finalAttrs . version } /mas-${ finalAttrs . version } -${ sources . arch } .pkg" ;
3434 inherit ( sources ) hash ;
3535 } ;
3636
@@ -49,12 +49,14 @@ stdenvNoCC.mkDerivation rec {
4949 runHook postUnpack
5050 '' ;
5151
52+ dontConfigure = true ;
5253 dontBuild = true ;
54+ strictDeps = true ;
5355
5456 installPhase = ''
5557 runHook preInstall
5658
57- install -Dm755 usr/local/opt/mas/bin/mas $out /bin/mas
59+ installBin usr/local/opt/mas/bin/mas
5860
5961 installManPage usr/local/opt/mas/share/man/man1/mas.1
6062 installShellCompletion --bash usr/local/opt/mas/etc/bash_completion.d/mas
@@ -83,4 +85,4 @@ stdenvNoCC.mkDerivation rec {
8385 "aarch64-darwin"
8486 ] ;
8587 } ;
86- }
88+ } )
You can’t perform that action at this time.
0 commit comments