dtsfmt: init at 0.8.0 (#511544)

This commit is contained in:
isabel
2026-04-20 19:52:49 +00:00
committed by GitHub
+31
View File
@@ -0,0 +1,31 @@
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dtsfmt";
version = "0.8.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "mskelton";
repo = "dtsfmt";
tag = "v${finalAttrs.version}";
hash = "sha256-2DKfmWnz9Iaxs4VN16BHOzsncEFXaX2mwR2Ta9AyYn0=";
fetchSubmodules = true;
};
cargoHash = "sha256-BbX/IEfn5qhyW/IkgARfxD0rTx+hcoq8TmoDmUqclHQ=";
passthru.updateScript = nix-update-script { };
meta = {
description = "Auto formatter for device tree files";
homepage = "https://github.com/mskelton/dtsfmt";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ toodeluna ];
mainProgram = "dtsfmt";
};
})