feat: add prismlauncher on andromedae

This commit is contained in:
Dmitriy Kholkin 2025-08-21 04:25:27 +03:00
parent 0822712332
commit 30487353cb
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
2 changed files with 35 additions and 38 deletions

View File

@ -111,7 +111,7 @@ in
modprobed-db modprobed-db
# packwiz # packwiz
# piper # piper
# prismlauncher prismlauncher
# radeontop # radeontop
# streamrip # streamrip
# wayvnc # wayvnc
@ -124,6 +124,7 @@ in
".config/lsfg-vk" ".config/lsfg-vk"
".config/sops/age" ".config/sops/age"
".config/WarThunder" ".config/WarThunder"
".local/share/PrismLauncher"
"nixos-config" "nixos-config"
"projects" "projects"
]; ];

View File

@ -34,9 +34,13 @@ in
# nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update; # nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update;
osu-lazer = unstable.osu-lazer; osu-lazer = unstable.osu-lazer;
osu-lazer-bin = unstable.osu-lazer-bin; osu-lazer-bin = unstable.osu-lazer-bin;
# prismlauncher = inputs.prismlauncher.packages.${system}.prismlauncher.override { prismlauncher = inputs.prismlauncher.packages.${system}.prismlauncher.override {
# jdks = [ final.temurin-bin ]; jdks = [
# }; final.temurin-jre-bin
final.temurin-jre-bin-17
];
textToSpeechSupport = false;
};
proton-ge-bin = unstable.proton-ge-bin; proton-ge-bin = unstable.proton-ge-bin;
xray = unstable.xray; xray = unstable.xray;
# youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; }; # youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
@ -63,46 +67,38 @@ in
util-linux util-linux
zip zip
]); ]);
postUnpack = postUnpack = oa.postUnpack or "" + ''
oa.postUnpack or "" patchShebangs --build ${spotx}
+ '' '';
patchShebangs --build ${spotx} postInstall = oa.postInstall or "" + ''
''; bash ${spotx} -f -h -P "$out/share/spotify"
postInstall = '';
oa.postInstall or ""
+ ''
bash ${spotx} -f -h -P "$out/share/spotify"
'';
} }
); );
# Move modprobed config to subdir. Easier to use with impermanence # Move modprobed config to subdir. Easier to use with impermanence
modprobed-db = prev.modprobed-db.overrideAttrs (oa: { modprobed-db = prev.modprobed-db.overrideAttrs (oa: {
nativeBuildInputs = [ prev.makeWrapper ] ++ oa.nativeBuildInputs or [ ]; nativeBuildInputs = [ prev.makeWrapper ] ++ oa.nativeBuildInputs or [ ];
postPatch = postPatch = (oa.postPatch or "") + ''
(oa.postPatch or "") substituteInPlace ./common/modprobed-db.in \
+ '' --replace-fail "/modprobed-db.conf" "/modprobed-db/modprobed-db.conf"
substituteInPlace ./common/modprobed-db.in \ substituteInPlace ./common/modprobed-db.skel \
--replace-fail "/modprobed-db.conf" "/modprobed-db/modprobed-db.conf" --replace-fail "/.config" "/.config/modprobed-db"
substituteInPlace ./common/modprobed-db.skel \ '';
--replace-fail "/.config" "/.config/modprobed-db" postInstall = (oa.postInstall or "") + ''
''; wrapProgram $out/bin/modprobed-db \
postInstall = --set PATH ${
(oa.postInstall or "") with final;
+ '' lib.makeBinPath [
wrapProgram $out/bin/modprobed-db \ gawk
--set PATH ${ getent
with final; coreutils
lib.makeBinPath [ gnugrep
gawk gnused
getent kmod
coreutils ]
gnugrep }
gnused '';
kmod
]
}
'';
}); });
pass-secret-service = prev.pass-secret-service.overrideAttrs (_: { pass-secret-service = prev.pass-secret-service.overrideAttrs (_: {