2023-10-26 22:45:54 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, qt6
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "KDSingleApplication";
|
2023-12-22 20:35:14 +01:00
|
|
|
version = "1.1.0";
|
2023-10-26 22:45:54 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KDAB";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-12-22 20:35:14 +01:00
|
|
|
hash = "sha256-Ymm+qOZMWULg7u5xEpGzcAfIrbWBQ3jsndnFSnh6/PA=";
|
2023-10-26 22:45:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ qt6.qtbase ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DKDSingleApplication_QT6=true" ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "KDAB's helper class for single-instance policy applications";
|
|
|
|
homepage = "https://www.kdab.com/";
|
|
|
|
maintainers = with maintainers; [ hellwolf ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
|
|
|
changelog = "https://github.com/KDAB/KDSingleApplication/releases/tag/v${version}";
|
|
|
|
};
|
|
|
|
}
|