Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 718 B view raw
1{ lib, rustPlatform, fetchFromGitHub, testers, cbfmt }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cbfmt"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "lukas-reineke"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-/ZvL1ZHXcmE1n+hHvJeSqmnI9nSHJ+zM9lLNx0VQfIE="; 12 }; 13 14 cargoHash = "sha256-6oZCpjQ8t/QLFhEtF7td8KGI/kFE04pg7OELutsrJKo="; 15 16 passthru.tests.version = testers.testVersion { 17 package = cbfmt; 18 }; 19 20 meta = with lib; { 21 description = "Tool to format codeblocks inside markdown and org documents"; 22 mainProgram = "cbfmt"; 23 homepage = "https://github.com/lukas-reineke/cbfmt"; 24 license = licenses.mit; 25 maintainers = [ maintainers.stehessel ]; 26 }; 27}