Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 60 lines 1.2 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 gtk3, 6 adwaita-icon-theme, 7 breeze-icons, 8 hicolor-icon-theme, 9 gitUpdater, 10}: 11 12stdenvNoCC.mkDerivation rec { 13 pname = "kora-icon-theme"; 14 version = "1.6.5"; 15 16 src = fetchFromGitHub { 17 owner = "bikass"; 18 repo = "kora"; 19 rev = "v${version}"; 20 sha256 = "sha256-Oralfx5MzCzkx+c+zwtFp8q83oKrNINd/PmVeugNKGo="; 21 }; 22 23 nativeBuildInputs = [ 24 gtk3 25 ]; 26 27 propagatedBuildInputs = [ 28 adwaita-icon-theme 29 breeze-icons 30 hicolor-icon-theme 31 ]; 32 33 dontDropIconThemeCache = true; 34 35 installPhase = '' 36 runHook preInstall 37 38 mkdir -p $out/share/icons 39 cp -a kora* $out/share/icons/ 40 rm $out/share/icons/kora*/create-new-icon-theme.cache.sh 41 42 for theme in $out/share/icons/*; do 43 gtk-update-icon-cache -f $theme 44 done 45 46 runHook postInstall 47 ''; 48 49 passthru.updateScript = gitUpdater { 50 rev-prefix = "v"; 51 }; 52 53 meta = with lib; { 54 description = "SVG icon theme in four variants"; 55 homepage = "https://github.com/bikass/kora"; 56 license = with licenses; [ gpl3Only ]; 57 platforms = platforms.linux; 58 maintainers = with maintainers; [ romildo ]; 59 }; 60}