Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
enableAvifSupport ? false,
|
|
stdenv,
|
|
lib,
|
|
cmake,
|
|
pkg-config,
|
|
boost,
|
|
openssl,
|
|
libsecret,
|
|
libnotify,
|
|
libavif,
|
|
kdePackages,
|
|
autoPatchelfHook,
|
|
libpulseaudio,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
kdePackages.wrapQtAppsHook
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
|
|
|
buildInputs =
|
|
(with kdePackages; [
|
|
qtbase
|
|
qtsvg
|
|
qt5compat
|
|
qtkeychain
|
|
qtimageformats
|
|
])
|
|
++ [
|
|
boost
|
|
openssl
|
|
libsecret
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
kdePackages.qtwayland
|
|
libnotify
|
|
]
|
|
++ lib.optional enableAvifSupport libavif;
|
|
|
|
runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [ libpulseaudio ];
|
|
|
|
preConfigure = ''
|
|
if [[ -f "$src/GIT_HASH" ]]; then
|
|
export GIT_HASH="$(cat $src/GIT_HASH)"
|
|
fi
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_WITH_QT6" true)
|
|
(lib.cmakeBool "USE_SYSTEM_QTKEYCHAIN" true)
|
|
(lib.cmakeBool "CHATTERINO_UPDATER" false)
|
|
];
|
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
mkdir -p "$out/Applications"
|
|
mv bin/chatterino.app "$out/Applications/"
|
|
'';
|
|
}
|