packages: project-plus; remove User config
This commit is contained in:
		
							parent
							
								
									35af389158
								
							
						
					
					
						commit
						1898815955
					
				
					 4 changed files with 54 additions and 34 deletions
				
			
		|  | @ -5,7 +5,7 @@ | ||||||
|   ... |   ... | ||||||
| }: { | }: { | ||||||
|   perSystem = {pkgs, ...}: let |   perSystem = {pkgs, ...}: let | ||||||
|     inherit (pkgs) callPackage; |     inherit (pkgs) callPackage qt6Packages; | ||||||
|   in { |   in { | ||||||
|     packages = { |     packages = { | ||||||
|       repopack = callPackage ./repopack {}; |       repopack = callPackage ./repopack {}; | ||||||
|  | @ -22,8 +22,8 @@ | ||||||
|         fpp-launcher = callPackage ./project-plus/fpp-launcher.nix {}; |         fpp-launcher = callPackage ./project-plus/fpp-launcher.nix {}; | ||||||
|         fpp-sd = callPackage ./project-plus/fpp-sd.nix {}; |         fpp-sd = callPackage ./project-plus/fpp-sd.nix {}; | ||||||
|       in |       in | ||||||
|         callPackage ./project-plus { |         qt6Packages.callPackage ./project-plus { | ||||||
|           inherit fpp-config fpp-launcher fpp-sd; |           inherit fpp-launcher fpp-sd fpp-config; | ||||||
|         }; |         }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| { | { | ||||||
|   fpp-config, |   fpp-config, | ||||||
|  |   userDir ? "/home/ooks/.config/project-plus", | ||||||
|   fpp-sd, |   fpp-sd, | ||||||
|   fpp-launcher, |   fpp-launcher, | ||||||
|   lib, |   lib, | ||||||
|  | @ -9,7 +10,6 @@ | ||||||
|   pkg-config, |   pkg-config, | ||||||
|   wrapQtAppsHook, |   wrapQtAppsHook, | ||||||
|   fetchpatch, |   fetchpatch, | ||||||
|   makeDesktopItem, |  | ||||||
|   copyDesktopItems, |   copyDesktopItems, | ||||||
|   alsa-lib, |   alsa-lib, | ||||||
|   bluez, |   bluez, | ||||||
|  | @ -61,16 +61,16 @@ in | ||||||
|     src = fetchFromGitHub { |     src = fetchFromGitHub { | ||||||
|       owner = "jlambert360"; |       owner = "jlambert360"; | ||||||
|       repo = "Ishiiruka"; |       repo = "Ishiiruka"; | ||||||
|       hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; |       hash = "sha256-UmIaOBHMRsl9FnfowAQGBjB83wpVRhoO0gzLed09lmk"; | ||||||
|       inherit rev; |       inherit rev; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     patches = [ |     patches = [ | ||||||
|       fetchpatch |       (fetchpatch | ||||||
|         { |         { | ||||||
|           url = "https://github.com/dolphin-emu/dolphin/commit/3da2e15e6b95f02f66df461e87c8b896e450fdab.patch"; |           url = "https://github.com/dolphin-emu/dolphin/commit/3da2e15e6b95f02f66df461e87c8b896e450fdab.patch"; | ||||||
|         hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; |           hash = "sha256-+8yGF412wQUYbyEuYWd41pgOgEbhCaezexxcI5CNehc="; | ||||||
|       } |         }) | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     strictDeps = true; |     strictDeps = true; | ||||||
|  | @ -121,6 +121,7 @@ in | ||||||
|       gtk2 |       gtk2 | ||||||
|       gtk3 |       gtk3 | ||||||
|       xorg.libXinerama |       xorg.libXinerama | ||||||
|  |       xorg.libXxf86vm | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     cmakeFlags = [ |     cmakeFlags = [ | ||||||
|  | @ -137,6 +138,8 @@ in | ||||||
|     qtWrapperArgs = [ |     qtWrapperArgs = [ | ||||||
|       "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [vulkan-loader]}" |       "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [vulkan-loader]}" | ||||||
|       "--set QT_QPA_PLATFORM xcb" |       "--set QT_QPA_PLATFORM xcb" | ||||||
|  |       "--add-flags -u" | ||||||
|  |       "--add-flags ${toString userDir}" | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     patchPhase = '' |     patchPhase = '' | ||||||
|  | @ -151,37 +154,15 @@ in | ||||||
|     installPhase = '' |     installPhase = '' | ||||||
|       runHook preInstall |       runHook preInstall | ||||||
| 
 | 
 | ||||||
|       cp -rf ${fpp-config}/Binaries/* Binaries/ |       cp -rf ${fpp-config}/Binaries/Sys Binaries/ | ||||||
|       chmod -R 755 Binaries/ |       chmod -R 755 Binaries/ | ||||||
|       rm Binaries/portable.txt |  | ||||||
| 
 | 
 | ||||||
|       cp -rf ${fpp-launcher}/Launcher/* Binaries/Launcher |  | ||||||
|       mkdir -p Binaries/User/Wii |  | ||||||
|       install -D -m 755 ${fpp-sd}/sd.raw Binaries/User/Wii |  | ||||||
|       mkdir -p $out |       mkdir -p $out | ||||||
|       cp Binaries/ $out/ -r |       cp Binaries/ $out/ -r | ||||||
| 
 | 
 | ||||||
|       sed -i 's|ISOPaths = 2|ISOPaths = 1|g' $out/Binaries/User/Config/Dolphin.ini |  | ||||||
|       sed -i 's|WiiSDCardPath = ./User/Wii/sd.raw|WiiSDCardPath = '$out'/User/Wii/sd.raw|g' $out/Binaries/User/Config/Dolphin.ini |  | ||||||
|       sed -i 's|ISOPath0 = ./Launcher|ISOPath0 = '$out'/Launcher|g' $out/Binaries/User/Config/Dolphin.ini |  | ||||||
|       sed -i '\|ISOPath1 = ./Games|d' $out/Binaries/User/Config/Dolphin.ini |  | ||||||
| 
 |  | ||||||
|       mkdir -p $out/bin |       mkdir -p $out/bin | ||||||
|       ln -s $out/Binaries/ishiiruka $out/bin/faster-project-plus |       ln -s $out/Binaries/ishiiruka $out/bin/project-plus | ||||||
| 
 | 
 | ||||||
|       runHook postInstall |       runHook postInstall | ||||||
|     ''; |     ''; | ||||||
| 
 |  | ||||||
|     desktopItems = [ |  | ||||||
|       (makeDesktopItem { |  | ||||||
|         name = "project-plus"; |  | ||||||
|         exec = "project-plus"; |  | ||||||
|         icon = "ishiiruka"; |  | ||||||
|         desktopName = "Project+"; |  | ||||||
|         comment = "Ishiiruka fork for SSBPM"; |  | ||||||
|         type = "Application"; |  | ||||||
|         categories = ["Emulator" "Game"]; |  | ||||||
|         keywords = ["ProjectM" "Project M" "ProjectPlus" "Project Plus" "Project+"]; |  | ||||||
|       }) |  | ||||||
|     ]; |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
							
								
								
									
										19
									
								
								outputs/pkgs/project-plus/fpp-config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								outputs/pkgs/project-plus/fpp-config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | { | ||||||
|  |   stdenv, | ||||||
|  |   fetchzip, | ||||||
|  | }: | ||||||
|  | stdenv.mkDerivation { | ||||||
|  |   name = "fpp-config"; | ||||||
|  |   version = "2.28"; | ||||||
|  | 
 | ||||||
|  |   archiveName = "fppconfig.tar.gz"; | ||||||
|  |   src = fetchzip { | ||||||
|  |     url = "https://github.com/jlambert360/FPM-AppImage/raw/refs/heads/master/config/fppconfig.tar.gz"; | ||||||
|  |     sha256 = "sha256-1+dQkNuZi2LXqmUuYJHI6RYuFUmI2wzVb4D2SYdZt1Y="; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   installPhase = '' | ||||||
|  |     mkdir -p $out/Binaries | ||||||
|  |     cp -rf . $out/Binaries | ||||||
|  |   ''; | ||||||
|  | } | ||||||
							
								
								
									
										20
									
								
								outputs/pkgs/project-plus/fpp-sd.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								outputs/pkgs/project-plus/fpp-sd.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | ||||||
|  | { | ||||||
|  |   stdenv, | ||||||
|  |   fetchzip, | ||||||
|  | }: let | ||||||
|  |   version = "3.0.5"; | ||||||
|  | in | ||||||
|  |   stdenv.mkDerivation { | ||||||
|  |     name = "fpp-sdcard"; | ||||||
|  |     inherit version; | ||||||
|  | 
 | ||||||
|  |     src = fetchzip { | ||||||
|  |       url = "https://github.com/jlambert360/FPM-AppImage/releases/download/v${version}/sd.tar.gz"; | ||||||
|  |       sha256 = "sha256-9QrfAxY62x5RlELOUey+zfVzP3xuDB/sRe/0rVevV6A"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     installPhase = '' | ||||||
|  |       mkdir -p $out | ||||||
|  |       cp sd.raw $out | ||||||
|  |     ''; | ||||||
|  |   } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue