Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 57 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 libconfig, 7 lxqt-build-tools, 8 pkg-config, 9 qtbase, 10 qttools, 11 qtx11extras, 12 wrapQtAppsHook, 13 gitUpdater, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "compton-conf"; 18 version = "0.16.0"; 19 20 src = fetchFromGitHub { 21 owner = "lxqt"; 22 repo = pname; 23 rev = version; 24 hash = "sha256-GNS0GdkQOEFQHCeXFVNDdT35KCRhfwmkL78tpY71mz0="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 lxqt-build-tools 30 pkg-config 31 qttools 32 qtx11extras 33 wrapQtAppsHook 34 ]; 35 36 buildInputs = [ 37 libconfig 38 qtbase 39 ]; 40 41 preConfigure = '' 42 substituteInPlace autostart/CMakeLists.txt \ 43 --replace-fail "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg" \ 44 ''; 45 46 passthru.updateScript = gitUpdater { }; 47 48 meta = with lib; { 49 broken = stdenv.hostPlatform.isDarwin; 50 homepage = "https://github.com/lxqt/compton-conf"; 51 description = "GUI configuration tool for compton X composite manager"; 52 mainProgram = "compton-conf"; 53 license = licenses.lgpl21Plus; 54 platforms = with platforms; unix; 55 teams = [ teams.lxqt ]; 56 }; 57}