metapac: init at 0.9.3

This commit is contained in:
Yiyu Zhou
2026-02-23 23:17:02 -08:00
committed by Yiyu Zhou
parent ba79e892c8
commit 591fc655cb
+41
View File
@@ -0,0 +1,41 @@
{
fetchFromGitHub,
lib,
nix-update-script,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "metapac";
version = "0.9.3";
src = fetchFromGitHub {
owner = "ripytide";
repo = "metapac";
tag = "v${finalAttrs.version}";
hash = "sha256-qLu8fXPdeAVnZOm80aXXm20FXeGTy2KpZsN40ILPBUc=";
};
cargoHash = "sha256-EOTf+RcYN6v4Yp/UhQEui48wQerwP+JwGhIZJzmV5cA=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Multi-backend declarative package manager";
longDescription = ''
`metapac` allows you to maintain a consistent set of packages
across multiple machines. It also makes setting up a new system
with your preferred packages from your preferred package
managers much easier.
'';
homepage = "https://github.com/ripytide/metapac";
changelog = "https://github.com/ripytide/metapac/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "metapac";
};
})