Merge pull request #331761 from Sigmanificient/nph

nph: init at 0.6.0

authored by Sandro and committed by GitHub 6c8ea93c f8ea7ea9

+39
+3
pkgs/by-name/np/nph/lock.json
···
··· 1 + { 2 + "depends": [] 3 + }
+36
pkgs/by-name/np/nph/package.nix
···
··· 1 + { 2 + lib, 3 + buildNimPackage, 4 + fetchFromGitHub, 5 + }: 6 + 7 + buildNimPackage (finalAttrs: { 8 + pname = "nph"; 9 + version = "0.6.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "arnetheduck"; 13 + repo = "nph"; 14 + rev = "v${finalAttrs.version}"; 15 + hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs="; 16 + }; 17 + 18 + lockFile = ./lock.json; 19 + 20 + checkPhase = '' 21 + runHook preCheck 22 + 23 + $out/bin/nph tests/before 24 + diff tests/before tests/after -x "*.yaml" 25 + 26 + runHook postCheck 27 + ''; 28 + 29 + meta = { 30 + description = "Opinionated code formatter for Nim"; 31 + homepage = "https://github.com/arnetheduck/nph"; 32 + license = lib.licenses.mit; 33 + maintainers = with lib.maintainers; [ sigmanificient ]; 34 + mainProgram = "nph"; 35 + }; 36 + })