Some checks are pending
		
		
	
	Build legacy Nix package on Ubuntu / build (push) Waiting to run
				
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			696 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			696 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   inputs = {
 | |
|     naersk.url = "github:nix-community/naersk/master";
 | |
|     naersk.inputs.nixpkgs.follows = "nixpkgs";
 | |
|     nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | |
|     utils.url = "github:numtide/flake-utils";
 | |
|   };
 | |
| 
 | |
|   outputs = { self, nixpkgs, utils, naersk }:
 | |
|     utils.lib.eachDefaultSystem (system:
 | |
|       let
 | |
|         pkgs = import nixpkgs { inherit system; };
 | |
|         naersk-lib = pkgs.callPackage naersk { };
 | |
|       in
 | |
|       {
 | |
|         defaultPackage = naersk-lib.buildPackage ./.;
 | |
|         devShell = with pkgs; mkShell {
 | |
|           buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
 | |
|           RUST_SRC_PATH = rustPlatform.rustLibSrc;
 | |
|         };
 | |
|       }
 | |
|     );
 | |
| }
 |