HASH 1898815955fd
DATE 2025-01-10
SUBJECT packages: project-plus; remove User config
FILES 4 CHANGED
HASH 1898815955fd
DATE 2025-01-10
SUBJECT packages: project-plus; remove User
config
FILES 4 CHANGED
┌─ outputs/pkgs/default.nix ─────────────────────────────────────────────────┐
│ diff --git a/outputs/pkgs/default.nix b/outputs/pkgs/default.nix │
│ index 4710db9..58ba4e5 100644 │
│ --- a/outputs/pkgs/default.nix │
│ +++ b/outputs/pkgs/default.nix │
│ @@ -5,7 +5,7 @@ │
│ ... │
│ }: { │
│ perSystem = {pkgs, ...}: let │
│ - inherit (pkgs) callPackage; │
│ + inherit (pkgs) callPackage qt6Packages; │
│ in { │
│ packages = { │
│ repopack = callPackage ./repopack {}; │
│ @@ -22,8 +22,8 @@ │
│ fpp-launcher = callPackage ./project-plus/fpp-launcher.nix {}; │
│ fpp-sd = callPackage ./project-plus/fpp-sd.nix {}; │
│ in │
│ - callPackage ./project-plus { │
│ - inherit fpp-config fpp-launcher fpp-sd; │
│ + qt6Packages.callPackage ./project-plus { │
│ + inherit fpp-launcher fpp-sd fpp-config; │
│ }; │
│ }; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ outputs/pkgs/default.nix ───────────┐
│ diff --git a/outputs/pkgs/default.nix b/outp │
│ uts/pkgs/default.nix │
│ index 4710db9..58ba4e5 100644 │
│ --- a/outputs/pkgs/default.nix │
│ +++ b/outputs/pkgs/default.nix │
│ @@ -5,7 +5,7 @@ │
│ ... │
│ }: { │
│ perSystem = {pkgs, ...}: let │
│ - inherit (pkgs) callPackage; │
│ + inherit (pkgs) callPackage qt6Packages; │
│ in { │
│ packages = { │
│ repopack = callPackage ./repopack {}; │
│ @@ -22,8 +22,8 @@ │
│ fpp-launcher = callPackage ./projec │
│ t-plus/fpp-launcher.nix {}; │
│ fpp-sd = callPackage ./project-plus │
│ /fpp-sd.nix {}; │
│ in │
│ - callPackage ./project-plus { │
│ - inherit fpp-config fpp-launcher f │
│ pp-sd; │
│ + qt6Packages.callPackage ./project-p │
│ lus { │
│ + inherit fpp-launcher fpp-sd fpp-c │
│ onfig; │
│ }; │
│ }; │
│ }; │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/project-plus/default.nix ────────────────────────────────────┐
│ diff --git a/outputs/pkgs/project-plus/default.nix b/outputs/pkgs/project-plus/def │
│ ault.nix │
│ index 098eb9f..629a689 100644 │
│ --- a/outputs/pkgs/project-plus/default.nix │
│ +++ b/outputs/pkgs/project-plus/default.nix │
│ @@ -1,5 +1,6 @@ │
│ { │
│ fpp-config, │
│ + userDir ? "/home/ooks/.config/project-plus", │
│ fpp-sd, │
│ fpp-launcher, │
│ lib, │
│ @@ -9,7 +10,6 @@ │
│ pkg-config, │
│ wrapQtAppsHook, │
│ fetchpatch, │
│ - makeDesktopItem, │
│ copyDesktopItems, │
│ alsa-lib, │
│ bluez, │
│ @@ -61,16 +61,16 @@ in │
│ src = fetchFromGitHub { │
│ owner = "jlambert360"; │
│ repo = "Ishiiruka"; │
│ - hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; │
│ + hash = "sha256-UmIaOBHMRsl9FnfowAQGBjB83wpVRhoO0gzLed09lmk"; │
│ inherit rev; │
│ }; │
│ │
│ patches = [ │
│ - fetchpatch │
│ - { │
│ - url = "https://github.com/dolphin-emu/dolphin/commit/3da2e15e6b95f02f66df │
│ 461e87c8b896e450fdab.patch"; │
│ - hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; │
│ - } │
│ + (fetchpatch │
│ + { │
│ + url = "https://github.com/dolphin-emu/dolphin/commit/3da2e15e6b95f02f66 │
│ df461e87c8b896e450fdab.patch"; │
│ + hash = "sha256-+8yGF412wQUYbyEuYWd41pgOgEbhCaezexxcI5CNehc="; │
│ + }) │
│ ]; │
│ │
│ strictDeps = true; │
│ @@ -121,6 +121,7 @@ in │
│ gtk2 │
│ gtk3 │
│ xorg.libXinerama │
│ + xorg.libXxf86vm │
│ ]; │
│ │
│ cmakeFlags = [ │
│ @@ -137,6 +138,8 @@ in │
│ qtWrapperArgs = [ │
│ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [vulkan-loader]}" │
│ "--set QT_QPA_PLATFORM xcb" │
│ + "--add-flags -u" │
│ + "--add-flags ${toString userDir}" │
│ ]; │
│ │
│ patchPhase = '' │
│ @@ -151,37 +154,15 @@ in │
│ installPhase = '' │
│ runHook preInstall │
│ │
│ - cp -rf ${fpp-config}/Binaries/* Binaries/ │
│ + cp -rf ${fpp-config}/Binaries/Sys 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 │
│ cp Binaries/ $out/ -r │
│ │
│ - sed -i 's|ISOPaths = 2|ISOPaths = 1|g' $out/Binaries/User/Config/Dolphin.in │
│ i │
│ - 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 │
│ - ln -s $out/Binaries/ishiiruka $out/bin/faster-project-plus │
│ + ln -s $out/Binaries/ishiiruka $out/bin/project-plus │
│ │
│ 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+ │
│ "]; │
│ - }) │
│ - ]; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...pkgs/project-plus/default.nix ───┐
│ diff --git a/outputs/pkgs/project-plus/defau │
│ lt.nix b/outputs/pkgs/project-plus/default.n │
│ ix │
│ index 098eb9f..629a689 100644 │
│ --- a/outputs/pkgs/project-plus/default.nix │
│ +++ b/outputs/pkgs/project-plus/default.nix │
│ @@ -1,5 +1,6 @@ │
│ { │
│ fpp-config, │
│ + userDir ? "/home/ooks/.config/project-plu │
│ s", │
│ fpp-sd, │
│ fpp-launcher, │
│ lib, │
│ @@ -9,7 +10,6 @@ │
│ pkg-config, │
│ wrapQtAppsHook, │
│ fetchpatch, │
│ - makeDesktopItem, │
│ copyDesktopItems, │
│ alsa-lib, │
│ bluez, │
│ @@ -61,16 +61,16 @@ in │
│ src = fetchFromGitHub { │
│ owner = "jlambert360"; │
│ repo = "Ishiiruka"; │
│ - hash = "sha256-AAAAAAAAAAAAAAAAAAAAAA │
│ AAAAAAAAA"; │
│ + hash = "sha256-UmIaOBHMRsl9FnfowAQGBj │
│ B83wpVRhoO0gzLed09lmk"; │
│ inherit rev; │
│ }; │
│ │
│ patches = [ │
│ - fetchpatch │
│ - { │
│ - url = "https://github.com/dolphin-e │
│ mu/dolphin/commit/3da2e15e6b95f02f66df461e87 │
│ c8b896e450fdab.patch"; │
│ - hash = "sha256-AAAAAAAAAAAAAAAAAAAA │
│ AAAAAAAAAAAA"; │
│ - } │
│ + (fetchpatch │
│ + { │
│ + url = "https://github.com/dolphin │
│ -emu/dolphin/commit/3da2e15e6b95f02f66df461e │
│ 87c8b896e450fdab.patch"; │
│ + hash = "sha256-+8yGF412wQUYbyEuYW │
│ d41pgOgEbhCaezexxcI5CNehc="; │
│ + }) │
│ ]; │
│ │
│ strictDeps = true; │
│ @@ -121,6 +121,7 @@ in │
│ gtk2 │
│ gtk3 │
│ xorg.libXinerama │
│ + xorg.libXxf86vm │
│ ]; │
│ │
│ cmakeFlags = [ │
│ @@ -137,6 +138,8 @@ in │
│ qtWrapperArgs = [ │
│ "--prefix LD_LIBRARY_PATH : ${lib.mak │
│ eLibraryPath [vulkan-loader]}" │
│ "--set QT_QPA_PLATFORM xcb" │
│ + "--add-flags -u" │
│ + "--add-flags ${toString userDir}" │
│ ]; │
│ │
│ patchPhase = '' │
│ @@ -151,37 +154,15 @@ in │
│ installPhase = '' │
│ runHook preInstall │
│ │
│ - cp -rf ${fpp-config}/Binaries/* Binar │
│ ies/ │
│ + cp -rf ${fpp-config}/Binaries/Sys Bin │
│ aries/ │
│ chmod -R 755 Binaries/ │
│ - rm Binaries/portable.txt │
│ │
│ - cp -rf ${fpp-launcher}/Launcher/* Bin │
│ aries/Launcher │
│ - mkdir -p Binaries/User/Wii │
│ - install -D -m 755 ${fpp-sd}/sd.raw Bi │
│ naries/User/Wii │
│ mkdir -p $out │
│ 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.ra │
│ w|g' $out/Binaries/User/Config/Dolphin.ini │
│ - sed -i 's|ISOPath0 = ./Launcher|ISOPa │
│ th0 = '$out'/Launcher|g' $out/Binaries/User/ │
│ Config/Dolphin.ini │
│ - sed -i '\|ISOPath1 = ./Games|d' $out/ │
│ Binaries/User/Config/Dolphin.ini │
│ - │
│ mkdir -p $out/bin │
│ - ln -s $out/Binaries/ishiiruka $out/bi │
│ n/faster-project-plus │
│ + ln -s $out/Binaries/ishiiruka $out/bi │
│ n/project-plus │
│ │
│ 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+"]; │
│ - }) │
│ - ]; │
│ } │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/project-plus/fpp-config.nix ─────────────────────────────────┐
│ diff --git a/outputs/pkgs/project-plus/fpp-config.nix b/outputs/pkgs/project-plus/ │
│ fpp-config.nix │
│ new file mode 100644 │
│ index 0000000..bf773a3 │
│ --- /dev/null │
│ +++ b/outputs/pkgs/project-plus/fpp-config.nix │
│ @@ -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/conf │
│ ig/fppconfig.tar.gz"; │
│ + sha256 = "sha256-1+dQkNuZi2LXqmUuYJHI6RYuFUmI2wzVb4D2SYdZt1Y="; │
│ + }; │
│ + │
│ + installPhase = '' │
│ + mkdir -p $out/Binaries │
│ + cp -rf . $out/Binaries │
│ + ''; │
│ +} │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...s/project-plus/fpp-config.nix ───┐
│ diff --git a/outputs/pkgs/project-plus/fpp-c │
│ onfig.nix b/outputs/pkgs/project-plus/fpp-co │
│ nfig.nix │
│ new file mode 100644 │
│ index 0000000..bf773a3 │
│ --- /dev/null │
│ +++ b/outputs/pkgs/project-plus/fpp-config.n │
│ ix │
│ @@ -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/F │
│ PM-AppImage/raw/refs/heads/master/config/fpp │
│ config.tar.gz"; │
│ + sha256 = "sha256-1+dQkNuZi2LXqmUuYJHI6R │
│ YuFUmI2wzVb4D2SYdZt1Y="; │
│ + }; │
│ + │
│ + installPhase = '' │
│ + mkdir -p $out/Binaries │
│ + cp -rf . $out/Binaries │
│ + ''; │
│ +} │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/project-plus/fpp-sd.nix ─────────────────────────────────────┐
│ diff --git a/outputs/pkgs/project-plus/fpp-sd.nix b/outputs/pkgs/project-plus/fpp- │
│ sd.nix │
│ new file mode 100644 │
│ index 0000000..dcea0b6 │
│ --- /dev/null │
│ +++ b/outputs/pkgs/project-plus/fpp-sd.nix │
│ @@ -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${ver │
│ sion}/sd.tar.gz"; │
│ + sha256 = "sha256-9QrfAxY62x5RlELOUey+zfVzP3xuDB/sRe/0rVevV6A"; │
│ + }; │
│ + │
│ + installPhase = '' │
│ + mkdir -p $out │
│ + cp sd.raw $out │
│ + ''; │
│ + } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .../pkgs/project-plus/fpp-sd.nix ───┐
│ diff --git a/outputs/pkgs/project-plus/fpp-s │
│ d.nix b/outputs/pkgs/project-plus/fpp-sd.nix │
│ new file mode 100644 │
│ index 0000000..dcea0b6 │
│ --- /dev/null │
│ +++ b/outputs/pkgs/project-plus/fpp-sd.nix │
│ @@ -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 │
│ + ''; │
│ + } │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET