Last active
June 10, 2025 15:47
-
-
Save Riey/11a06d326bcc41e33d4145fc8ce44bd8 to your computer and use it in GitHub Desktop.
Install kakaotalk with nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> {}, | |
wineprefix ? "", | |
winearch ? "win32", | |
fonts ? "corefonts cjkfonts", | |
}: | |
let | |
exe = pkgs.fetchurl { | |
url = https://app-pc.kakaocdn.net/talk/win32/KakaoTalk_Setup.exe; | |
sha256 = "1wy358vwj4l6j7kkinq8rmrspj6pb34b8vsazq2pnbm9qrxymckj"; | |
}; | |
in | |
with pkgs; | |
stdenv.mkDerivation { | |
name = "kakaotalk"; | |
src = ./.; | |
buildInputs = [ | |
wineWowPackages.full | |
winetricks | |
]; | |
shellHook = '' | |
PREFIX=${wineprefix} | |
if [[ -z "${wineprefix}" ]]; then | |
PREFIX=$(mktemp -d) | |
echo PREFIX="$PREFIX" | |
fi | |
echo Install kakaotalk from ${exe}... | |
if [[ -z "${fonts}" ]]; then | |
echo Skip winetricks | |
else | |
WINEPREFIX=$PREFIX WINEDLLOVERRIDES="mscoree,mshtml=" WINEARCH=${winearch} winetricks ${fonts} | |
fi | |
WINEPREFIX=$PREFIX WINEDLLOVERRIDES="mscoree,mshtml=" WINEARCH=${winearch} wine ${exe} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment