mas: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-06-06 15:19:49 -07:00
parent 01e9f80db0
commit 0090501fd1
+5 -8
View File
@@ -5,13 +5,14 @@
installShellFiles,
libarchive,
p7zip,
testers,
mas,
versionCheckHook,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mas";
version = "6.0.1";
__structuredAttrs = true;
src =
let
# nix store prefetch-file https://github.com/mas-cli/mas/releases/download/v$VERSION/mas-$VERSION-$ARCH.pkg
@@ -65,12 +66,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru.tests = {
version = testers.testVersion {
package = mas;
command = "mas version";
};
};
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Mac App Store command line interface";