Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 704 B view raw
1{ 2 lib, 3 rustPlatform, 4 versionCheckHook, 5 stalwart-mail, 6}: 7 8rustPlatform.buildRustPackage { 9 inherit (stalwart-mail) src version cargoDeps; 10 pname = "stalwart-cli"; 11 12 cargoBuildFlags = [ 13 "--package" 14 "stalwart-cli" 15 ]; 16 cargoTestFlags = [ 17 "--package" 18 "stalwart-cli" 19 ]; 20 21 doInstallCheck = true; 22 nativeInstallCheckInputs = [ versionCheckHook ]; 23 versionCheckProgramArg = "--version"; 24 25 # Prerelease reports incorrect version 26 dontVersionCheck = true; 27 28 meta = { 29 inherit (stalwart-mail.meta) license homepage changelog; 30 description = "Stalwart Mail Server CLI"; 31 mainProgram = "stalwart-cli"; 32 maintainers = with lib.maintainers; [ 33 giomf 34 ]; 35 }; 36}