Skip to content

Instantly share code, notes, and snippets.

@Riey
Last active June 10, 2025 15:47
Show Gist options
  • Save Riey/11a06d326bcc41e33d4145fc8ce44bd8 to your computer and use it in GitHub Desktop.
Save Riey/11a06d326bcc41e33d4145fc8ce44bd8 to your computer and use it in GitHub Desktop.
Install kakaotalk with nix
{
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