2022-03-10 19:12:11 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, qtwebengine
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
let
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "gitqlient";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.5.0";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
main_src = fetchFromGitHub {
|
|
|
|
owner = "francescmm";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Mq29HbmPABrRIJjWC5AAKIOKbGngeJdkZkWeJw8BFuw=";
|
|
|
|
};
|
|
|
|
aux_src = fetchFromGitHub rec {
|
|
|
|
owner = "francescmm";
|
|
|
|
repo = "AuxiliarCustomWidgets";
|
|
|
|
rev = "835f538b4a79e4d6bb70eef37a32103e7b2a1fd1";
|
|
|
|
sha256 = "sha256-b1gb/7UcLS6lI92dBfTenGXA064t4dZufs3S9lu/lQA=";
|
|
|
|
name = repo;
|
|
|
|
};
|
|
|
|
qlogger_src = fetchFromGitHub rec {
|
|
|
|
owner = "francescmm";
|
|
|
|
repo = "QLogger";
|
|
|
|
rev = "d1ed24e080521a239d5d5e2c2347fe211f0f3e4f";
|
|
|
|
sha256 = "sha256-NVlFYmm7IIkf8LhQrAYXil9kH6DFq1XjOEHQiIWmER4=";
|
|
|
|
name = repo;
|
|
|
|
};
|
|
|
|
qpinnabletab_src = fetchFromGitHub rec {
|
|
|
|
owner = "francescmm";
|
|
|
|
repo = "QPinnableTabWidget";
|
|
|
|
rev = "cc937794e910d0452f0c07b4961c6014a7358831";
|
|
|
|
sha256 = "sha256-2KzzBv/s2t665axeBxWrn8aCMQQArQLlUBOAlVhU+wE=";
|
|
|
|
name = repo;
|
|
|
|
};
|
|
|
|
git_src = fetchFromGitHub rec {
|
|
|
|
owner = "francescmm";
|
|
|
|
repo = "git";
|
|
|
|
rev = "b62750f4da4b133faff49e6f53950d659b18c948";
|
|
|
|
sha256 = "sha256-4FqA+kkHd0TqD6ZuB4CbJ+IhOtQG9uWN+qhSAT0dXGs=";
|
|
|
|
name = repo;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
srcs = [ main_src aux_src qlogger_src qpinnabletab_src git_src ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = main_src.name;
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtwebengine
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
postUnpack = ''
|
|
|
|
for dep in AuxiliarCustomWidgets QPinnableTabWidget QLogger git; do
|
|
|
|
rmdir "source/src/$dep"
|
|
|
|
ln -sf "../../$dep" "source/src/$dep"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
qmakeFlags = [
|
|
|
|
"GitQlient.pro"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/francescmm/GitQlient";
|
|
|
|
description = "Multi-platform Git client written with Qt";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|