nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 849 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qtbase, 7}: 8 9let 10 isQt6 = lib.versions.major qtbase.version == "6"; 11in 12stdenv.mkDerivation rec { 13 pname = "kcolorpicker"; 14 version = "0.3.1"; 15 16 src = fetchFromGitHub { 17 owner = "ksnip"; 18 repo = "kColorPicker"; 19 rev = "v${version}"; 20 hash = "sha256-FG/A4pDNuhGPOeJNZlsnX3paEy4ibJVWKxn8rVUGpN8="; 21 }; 22 23 nativeBuildInputs = [ cmake ]; 24 buildInputs = [ qtbase ]; 25 26 cmakeFlags = [ 27 (lib.cmakeBool "BUILD_WITH_QT6" isQt6) 28 (lib.cmakeBool "BUILD_SHARED_LIBS" true) 29 ]; 30 31 # Library only 32 dontWrapQtApps = true; 33 34 meta = { 35 description = "Qt based Color Picker with popup menu"; 36 homepage = "https://github.com/ksnip/kColorPicker"; 37 license = lib.licenses.lgpl3Plus; 38 maintainers = with lib.maintainers; [ fliegendewurst ]; 39 platforms = lib.platforms.linux; 40 }; 41}