Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 65 lines 1.3 kB view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 cmake, 6 extra-cmake-modules, 7 qtx11extras, 8 kcoreaddons, 9 kguiaddons, 10 kconfig, 11 kdecoration, 12 kconfigwidgets, 13 kwindowsystem, 14 kiconthemes, 15 kwayland, 16 unstableGitUpdater, 17}: 18 19mkDerivation { 20 pname = "material-kwin-decoration"; 21 version = "7-unstable-2023-01-15"; 22 23 src = fetchFromGitHub { 24 owner = "Zren"; 25 repo = "material-decoration"; 26 rev = "0e989e5b815b64ee5bca989f983da68fa5556644"; 27 sha256 = "sha256-Ncn5jxkuN4ZBWihfycdQwpJ0j4sRpBGMCl6RNiH4mXg="; 28 }; 29 30 # Remove -Werror since it uses deprecated methods 31 postPatch = '' 32 substituteInPlace ./CMakeLists.txt \ 33 --replace "add_definitions (-Wall -Werror)" "add_definitions (-Wall)" 34 ''; 35 36 nativeBuildInputs = [ 37 cmake 38 extra-cmake-modules 39 ]; 40 41 buildInputs = [ 42 qtx11extras 43 kcoreaddons 44 kguiaddons 45 kdecoration 46 kconfig 47 kconfigwidgets 48 kwindowsystem 49 kiconthemes 50 kwayland 51 ]; 52 53 passthru = { 54 updateScript = unstableGitUpdater { 55 tagPrefix = "v"; 56 }; 57 }; 58 59 meta = with lib; { 60 description = "Material-ish window decoration theme for KWin"; 61 homepage = "https://github.com/Zren/material-decoration"; 62 license = licenses.gpl2; 63 maintainers = with maintainers; [ nickcao ]; 64 }; 65}