Skip to content

Commit b952ca8

Browse files
committed
mas: 4.1.0 -> 5.1.0
1 parent 958b194 commit b952ca8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

pkgs/by-name/ma/mas/package.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
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+
})

0 commit comments

Comments
 (0)