Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 cargoSha256 = "sha256-6oZCpjQ8t/QLFhEtF7td8KGI/kFE04pg7OELutsrJKo="; 15 16 passthru.tests.version = testers.testVersion { 17 package = cbfmt; 18 }; 19 20 meta = with lib; { 21 description = "A tool to format codeblocks inside markdown and org documents"; 22 homepage = "https://github.com/lukas-reineke/cbfmt"; 23 license = licenses.mit; 24 maintainers = [ maintainers.stehessel ]; 25 }; 26}