sheep_net: init
Co-authored-by: bloxx12 <charlie@charlieroot.dev> Co-authored-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
		
							parent
							
								
									9783bde2f4
								
							
						
					
					
						commit
						c58a266a1e
					
				| @ -1,7 +1,6 @@ | ||||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										31
									
								
								pkgs/os-specific/linux/sheep-net/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								pkgs/os-specific/linux/sheep-net/default.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | ||||
| { | ||||
|   kernel, | ||||
|   kernelModuleMakeFlags, | ||||
|   stdenv, | ||||
|   basiliskii, | ||||
|   lib, | ||||
| }: | ||||
| stdenv.mkDerivation (finalAttrs: { | ||||
|   name = "sheep_net"; | ||||
|   version = basiliskii.version; | ||||
|   src = basiliskii.src; | ||||
|   sourceRoot = "${finalAttrs.src.name}/BasiliskII/src/Unix/Linux/NetDriver"; | ||||
| 
 | ||||
|   nativeBuildInputs = kernel.moduleBuildDependencies; | ||||
|   makeFlags = kernelModuleMakeFlags ++ [ | ||||
|     "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}" | ||||
|   ]; | ||||
| 
 | ||||
|   installPhase = '' | ||||
|     runHook preInstall | ||||
|     mkdir -p $out/lib/modules/${kernel.modDirVersion}/drivers/net | ||||
|     install -Dm444 sheep_net.ko $out/lib/modules/${kernel.modDirVersion}/drivers/net/sheep_net.ko | ||||
|     runHook postInstall | ||||
|   ''; | ||||
| 
 | ||||
|   meta = { | ||||
|     license = lib.licenses.gpl2Only; | ||||
|     maintainers = with lib.maintainers; [ matthewcroughan ]; | ||||
|     platforms = lib.platforms.linux; | ||||
|   }; | ||||
| }) | ||||
| @ -599,6 +599,8 @@ in | ||||
| 
 | ||||
|         rr-zen_workaround = callPackage ../development/tools/analysis/rr/zen_workaround.nix { }; | ||||
| 
 | ||||
|         sheep-net = callPackage ../os-specific/linux/sheep-net { }; | ||||
| 
 | ||||
|         shufflecake = callPackage ../os-specific/linux/shufflecake { }; | ||||
| 
 | ||||
|         sysdig = callPackage ../os-specific/linux/sysdig { }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 matthewcroughan
						matthewcroughan