Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. { stdenv, fetchFromGitHub, gtk3 }:
  2.  
  3. stdenv.mkDerivation rec {
  4.   pname = "la-capitaine-icon-theme";
  5.   version = "0.6.1";
  6.  
  7.   src = fetchFromGitHub {
  8.     owner = "keeferrourke";
  9.     repo = pname;
  10.     rev = "v${version}";
  11.     sha256 = "0cm2scrcg5h45y56h822ywyvfzns1x4wf3gqq96cwb22dc7ny1g9";
  12.   };
  13.  
  14.   nativeBuildInputs = [ gtk3 ];
  15.  
  16.   postPatch = ''
  17.     rm configure
  18.   '';
  19.  
  20.   installPhase = ''
  21.      mkdir -p $out/share/icons/La Capitaine
  22.      mv ./* $out/share/icons/La Capitaine
  23.  
  24.      conflict_files=(actions/22x22 devices/scalable status/scalable panel/16 panel/24 places/16x16)
  25.      icon_dir="$out/share/icons/La Capitaine"
  26.  
  27.      for i in "${conflict_files[@]}";
  28.      do
  29.          if [[ -d "$icon_dir/$conflict" ]] && [[ ! -L "$icon_dir/$conflict" ]]
  30.          then
  31.              rm -rf "$icon_dir/$i"
  32.          fi
  33.      done
  34.   '';
  35.  
  36.   postInstall = ''
  37.     gtk-update-icon-cache $out/share/icons/La Capitaine
  38.   '';
  39.  
  40.   meta = with stdenv.lib; {
  41.     description = "An icon pack designed to integrate with most desktop environments";
  42.     homepage = https://github.com/keeferrourke/la-capitaine-icon-theme;
  43.     license = licenses.gpl3;
  44.     maintainers = [ maintainers.linarcx ];
  45.     platforms = platforms.linux;
  46.   };
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement