Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
cmark,
git,
libssh2,
lua5_4,
hunspell,
ninja,
openssl,
pkg-config,
qtbase,
qttools,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "gittyup";
version = "1.4.0";
src = fetchFromGitHub {
owner = "Murmele";
repo = "Gittyup";
rev = "gittyup_v${version}";
hash = "sha256-anyjHSF0ZCBJTuqNdH49iwngt3zeJZat5XGDsKbiwPE=";
fetchSubmodules = true;
};
patches = [
# Fix GCC 14 build error (remove for next update)
# https://github.com/Murmele/Gittyup/pull/759
./0001-Fix-incorrect-order-of-argument-to-calloc-345.patch
];
cmakeFlags =
let
inherit (lib) cmakeBool;
in
[
(cmakeBool "BUILD_SHARED_LIBS" false)
(cmakeBool "USE_SYSTEM_CMARK" true)
(cmakeBool "USE_SYSTEM_GIT" true)
(cmakeBool "USE_SYSTEM_HUNSPELL" true)
# upstream uses its own fork of libgit2 as of 1.2.2, however this may change in the future
# (cmakeBool "USE_SYSTEM_LIBGIT2" true)
(cmakeBool "USE_SYSTEM_LIBSSH2" true)
(cmakeBool "USE_SYSTEM_LUA" true)
(cmakeBool "USE_SYSTEM_OPENSSL" true)
(cmakeBool "ENABLE_UPDATE_OVER_GUI" false)
];
nativeBuildInputs = [
cmake
cmark
ninja
pkg-config
wrapQtAppsHook
];
buildInputs = [
cmark
git
hunspell
libssh2
lua5_4
openssl
qtbase
qttools
];
postInstall = ''
# Those are not program libs, just some Qt5 libs that the build system leaks for some reason
rm -rf $out/{include,lib}
'';
meta = with lib; {
description = "Graphical Git client designed to help you understand and manage your source code history";
homepage = "https://murmele.github.io/Gittyup";
license = with licenses; [ mit ];
maintainers = with maintainers; [
fliegendewurst
phijor
];
platforms = platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
}