mas: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user