forked from fabian/nix
		
	apply format
This commit is contained in:
		
							parent
							
								
									34e3cdaf81
								
							
						
					
					
						commit
						3044c426fd
					
				
					 7 changed files with 1442 additions and 90 deletions
				
			
		
							
								
								
									
										5
									
								
								pkgs/config/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								pkgs/config/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| lib: | ||||
| with lib; { | ||||
|   android_sdk.accept_license = true; | ||||
|   allowUnfreePredicate = pkg: import ./unfree.nix lib (getName pkg); | ||||
| } | ||||
							
								
								
									
										13
									
								
								pkgs/config/unfree.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								pkgs/config/unfree.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| lib: name: | ||||
| with lib; | ||||
|   elem name [ | ||||
|     "discord" | ||||
|     "rar" | ||||
|     "spotify" | ||||
|     "spotify-unwrapped" | ||||
|     "steam" | ||||
|     "steam-original" | ||||
|     "steam-run" | ||||
|     "teams" | ||||
|     "zoom" | ||||
|   ] | ||||
							
								
								
									
										45
									
								
								pkgs/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								pkgs/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,45 @@ | |||
| final: prev: | ||||
| with prev.lib; let | ||||
|   inherit (final) callPackage fetchpatch; | ||||
| in { | ||||
|   lib = callPackage ./lib {}; | ||||
| 
 | ||||
|   st = prev.st.override { | ||||
|     conf = import ./st.nix {}; | ||||
| 
 | ||||
|     patches = [ | ||||
|       (fetchpatch { | ||||
|         url = "https://st.suckless.org/patches/clipboard/st-clipboard-0.8.3.diff"; | ||||
|         sha256 = "cbb37675e9b4986836c19aadacc616a006df81c9bf394e9e3573e164fa1867cf"; | ||||
|       }) | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   override = | ||||
|     { | ||||
|     } | ||||
|     // ( | ||||
|       let | ||||
|         makePyOverrides = version: let | ||||
|           name = "python3${toString version}"; | ||||
|         in { | ||||
|           inherit name; | ||||
| 
 | ||||
|           value = prev.${name}.override { | ||||
|             packageOverrides = nextPy: prevPy: { | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
| 
 | ||||
|         pyVersionRange' = start: end: let | ||||
|           next = end + 1; | ||||
|         in | ||||
|           if prev ? "python3${toString next}" | ||||
|           then pyVersionRange' start next | ||||
|           else range start end; | ||||
| 
 | ||||
|         pyVersionRange = start: pyVersionRange' start start; | ||||
|       in | ||||
|         listToAttrs (map makePyOverrides (pyVersionRange 9)) | ||||
|     ); | ||||
| } | ||||
							
								
								
									
										3
									
								
								pkgs/lib/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								pkgs/lib/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| {callPackage}: { | ||||
|   importAll = callPackage ./importAll.nix {}; | ||||
| } | ||||
							
								
								
									
										20
									
								
								pkgs/lib/importAll.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								pkgs/lib/importAll.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| {lib}: { | ||||
|   root, | ||||
|   exclude ? [], | ||||
| }: | ||||
| with builtins; | ||||
| with lib; | ||||
| # http://chriswarbo.net/projects/nixos/useful_hacks.html | ||||
|   let | ||||
|     basename = removeSuffix ".nix"; | ||||
| 
 | ||||
|     isMatch = name: type: | ||||
|       (hasSuffix ".nix" name || type == "directory") | ||||
|       && ! elem name (map basename exclude); | ||||
| 
 | ||||
|     entry = name: _: { | ||||
|       name = basename name; | ||||
|       value = import (root + "/${name}"); | ||||
|     }; | ||||
|   in | ||||
|     mapAttrs' entry (filterAttrs isMatch (readDir root)) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue