Merge pull request #331761 from Sigmanificient/nph

nph: init at 0.6.0
This commit is contained in:
Sandro 2024-08-17 22:28:33 +02:00 committed by GitHub
commit 6c8ea93c96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"depends": []
}

View File

@ -0,0 +1,36 @@
{
lib,
buildNimPackage,
fetchFromGitHub,
}:
buildNimPackage (finalAttrs: {
pname = "nph";
version = "0.6.0";
src = fetchFromGitHub {
owner = "arnetheduck";
repo = "nph";
rev = "v${finalAttrs.version}";
hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs=";
};
lockFile = ./lock.json;
checkPhase = ''
runHook preCheck
$out/bin/nph tests/before
diff tests/before tests/after -x "*.yaml"
runHook postCheck
'';
meta = {
description = "Opinionated code formatter for Nim";
homepage = "https://github.com/arnetheduck/nph";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
mainProgram = "nph";
};
})