package: add cargo-checkmate
This commit is contained in:
		
							parent
							
								
									44f0c7a133
								
							
						
					
					
						commit
						bf50b36166
					
				
					 4 changed files with 42 additions and 3 deletions
				
			
		| 
						 | 
					@ -38,9 +38,7 @@
 | 
				
			||||||
    nerdfonts_fira_hack = (final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; });
 | 
					    nerdfonts_fira_hack = (final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  new-packages = (final: prev: {
 | 
					  new-packages = (final: prev: packages // {
 | 
				
			||||||
    inherit (packages) dzgui plymouth-theme-red;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    dhist = inputs.dhist.packages.${system}.dhist;
 | 
					    dhist = inputs.dhist.packages.${system}.dhist;
 | 
				
			||||||
    demoji = inputs.demoji.packages.${system}.demoji;
 | 
					    demoji = inputs.demoji.packages.${system}.demoji;
 | 
				
			||||||
    devenv = inputs.devenv.packages.${system}.devenv;
 | 
					    devenv = inputs.devenv.packages.${system}.devenv;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										39
									
								
								pkgs/cargo-checkmate.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								pkgs/cargo-checkmate.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,39 @@
 | 
				
			||||||
 | 
					{ lib
 | 
				
			||||||
 | 
					, rustPlatform
 | 
				
			||||||
 | 
					, fetchFromGitHub
 | 
				
			||||||
 | 
					, pkg-config
 | 
				
			||||||
 | 
					, openssl
 | 
				
			||||||
 | 
					, zlib
 | 
				
			||||||
 | 
					, stdenv
 | 
				
			||||||
 | 
					, Security ? null
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rustPlatform.buildRustPackage rec {
 | 
				
			||||||
 | 
					  pname = "cargo-checkmate";
 | 
				
			||||||
 | 
					  version = "0.1.10";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  src = fetchFromGitHub {
 | 
				
			||||||
 | 
					    owner = "cargo-checkmate";
 | 
				
			||||||
 | 
					    repo = pname;
 | 
				
			||||||
 | 
					    rev = "v${version}";
 | 
				
			||||||
 | 
					    hash = "sha256-I8l/r26cDdimjgy/+IsasF4iHX09UGjVj0Yf6ScI3wQ=";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  cargoSha256 = "sha256-hOB84u55ishahIFSqBnqccqH3OlC9J8mCYzsd23jTyA=";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  nativeBuildInputs = [ pkg-config ];
 | 
				
			||||||
 | 
					  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
 | 
				
			||||||
 | 
					    Security
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  meta = with lib; {
 | 
				
			||||||
 | 
					    description = "Check all the things.";
 | 
				
			||||||
 | 
					    longDescriptin = ''
 | 
				
			||||||
 | 
					      Perform a series of useful checks out of the box. cargo-checkmate
 | 
				
			||||||
 | 
					      ensures your project builds, tests pass, has good format, doesn't
 | 
				
			||||||
 | 
					      have dependencies with known vulnerabilities, and so on.
 | 
				
			||||||
 | 
					    '';
 | 
				
			||||||
 | 
					    homepage = "https://github.com/cargo-checkmate/cargo-checkmate";
 | 
				
			||||||
 | 
					    license = with licenses; [ mit ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -4,4 +4,5 @@
 | 
				
			||||||
{ pkgs, inputs }: {
 | 
					{ pkgs, inputs }: {
 | 
				
			||||||
  dzgui = pkgs.callPackage ./dzgui.nix { };
 | 
					  dzgui = pkgs.callPackage ./dzgui.nix { };
 | 
				
			||||||
  plymouth-theme-red = pkgs.callPackage ./plymouth-theme-red.nix { inherit inputs; };
 | 
					  plymouth-theme-red = pkgs.callPackage ./plymouth-theme-red.nix { inherit inputs; };
 | 
				
			||||||
 | 
					  cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -129,6 +129,7 @@
 | 
				
			||||||
    cargo-watch
 | 
					    cargo-watch
 | 
				
			||||||
    cargo-expand
 | 
					    cargo-expand
 | 
				
			||||||
    cargo-sweep
 | 
					    cargo-sweep
 | 
				
			||||||
 | 
					    cargo-checkmate
 | 
				
			||||||
    pkgs.unstable.rust-analyzer
 | 
					    pkgs.unstable.rust-analyzer
 | 
				
			||||||
    gcc
 | 
					    gcc
 | 
				
			||||||
    rnix-lsp
 | 
					    rnix-lsp
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue