Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitLab, 5 testers, 6 commitmsgfmt, 7}: 8rustPlatform.buildRustPackage rec { 9 pname = "commitmsgfmt"; 10 version = "1.6.0"; 11 12 src = fetchFromGitLab { 13 owner = "mkjeldsen"; 14 repo = "commitmsgfmt"; 15 rev = "v${version}"; 16 hash = "sha256-HEkPnTO1HeJg8gpHFSUTkEVBPWJ0OdfUhNn9iGfaDD4="; 17 }; 18 19 cargoHash = "sha256-cej+Jpp12QEaru1mecuXtIFDEnSBvTwpx0Vgp8s7jj8="; 20 21 passthru.tests.version = testers.testVersion { 22 package = commitmsgfmt; 23 command = "commitmsgfmt -V"; 24 }; 25 26 meta = { 27 homepage = "https://gitlab.com/mkjeldsen/commitmsgfmt"; 28 changelog = "https://gitlab.com/mkjeldsen/commitmsgfmt/-/raw/v${version}/CHANGELOG.md"; 29 description = "Formats commit messages better than fmt(1) and Vim"; 30 mainProgram = "commitmsgfmt"; 31 license = lib.licenses.asl20; 32 maintainers = with lib.maintainers; [ mmlb ]; 33 }; 34}