Merge pull request #183528 from stehessel/init-cbfmt

cbfmt: init at 0.1.1
This commit is contained in:
Winter 2022-07-29 01:09:29 -04:00 committed by GitHub
commit edcf826d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib, rustPlatform, fetchFromGitHub, testers, cbfmt }:
rustPlatform.buildRustPackage rec {
pname = "cbfmt";
version = "0.1.1";
src = fetchFromGitHub {
owner = "lukas-reineke";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cTX7eBcEZiTJm3b1d2Mwu7NdbtHjeF+dkc3YMede0cQ=";
};
cargoSha256 = "sha256-vEInZplfgrM4gD5wPATl7j5iTo9pSstElfd0Lq9giJw=";
passthru.tests.version = testers.testVersion {
package = cbfmt;
};
meta = with lib; {
description = "A tool to format codeblocks inside markdown and org documents";
homepage = "https://github.com/lukas-reineke/cbfmt";
license = licenses.mit;
maintainers = [ maintainers.stehessel ];
};
}

View File

@ -292,6 +292,8 @@ with pkgs;
buf = callPackage ../development/tools/buf { };
cbfmt = callPackage ../development/tools/cbfmt { };
cfn-nag = callPackage ../development/tools/cfn-nag { };
cxx-rs = callPackage ../development/libraries/cxx-rs { };