nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 729 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 testers, 6 cbfmt, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "cbfmt"; 11 version = "0.2.0"; 12 13 src = fetchFromGitHub { 14 owner = "lukas-reineke"; 15 repo = "cbfmt"; 16 rev = "v${version}"; 17 sha256 = "sha256-/ZvL1ZHXcmE1n+hHvJeSqmnI9nSHJ+zM9lLNx0VQfIE="; 18 }; 19 20 cargoHash = "sha256-C1FpwC1JsKOkS59xAcwqpmZ2g7rr+HHRdADURLs+9co="; 21 22 passthru.tests.version = testers.testVersion { 23 package = cbfmt; 24 }; 25 26 meta = { 27 description = "Tool to format codeblocks inside markdown and org documents"; 28 mainProgram = "cbfmt"; 29 homepage = "https://github.com/lukas-reineke/cbfmt"; 30 license = lib.licenses.mit; 31 maintainers = [ lib.maintainers.stehessel ]; 32 }; 33}