Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 gtk3, 7 xcursorgen, 8 papirus-icon-theme, 9 libsForQt5, 10 hicolor-icon-theme, 11 deepin-icon-theme, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "deepin-desktop-theme"; 16 version = "1.0.13"; 17 18 src = fetchFromGitHub { 19 owner = "linuxdeepin"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-uNeRAsPbgC7IHHBIlczPXhnwZI65Le70D9MsbH+6Fwk="; 23 }; 24 25 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 26 27 nativeBuildInputs = [ 28 cmake 29 gtk3 30 xcursorgen 31 ]; 32 33 propagatedBuildInputs = [ 34 libsForQt5.breeze-icons 35 papirus-icon-theme 36 hicolor-icon-theme 37 deepin-icon-theme 38 ]; 39 40 dontDropIconThemeCache = true; 41 42 preFixup = '' 43 for theme in $out/share/icons/*; do 44 gtk-update-icon-cache $theme 45 done 46 ''; 47 48 meta = with lib; { 49 description = "Provides a variety of well-designed theme resources"; 50 homepage = "https://github.com/linuxdeepin/deepin-desktop-theme"; 51 license = with licenses; [ 52 gpl3Plus 53 cc-by-sa-40 54 ]; 55 platforms = platforms.linux; 56 teams = [ teams.deepin ]; 57 }; 58}