Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchFromGitHub, gtk3 }:
- stdenv.mkDerivation rec {
- pname = "la-capitaine-icon-theme";
- version = "0.6.1";
- src = fetchFromGitHub {
- owner = "keeferrourke";
- repo = pname;
- rev = "v${version}";
- sha256 = "0cm2scrcg5h45y56h822ywyvfzns1x4wf3gqq96cwb22dc7ny1g9";
- };
- nativeBuildInputs = [ gtk3 ];
- postPatch = ''
- rm configure
- '';
- installPhase = ''
- mkdir -p $out/share/icons/La Capitaine
- mv ./* $out/share/icons/La Capitaine
- conflict_files=(actions/22x22 devices/scalable status/scalable panel/16 panel/24 places/16x16)
- icon_dir="$out/share/icons/La Capitaine"
- for i in "${conflict_files[@]}";
- do
- if [[ -d "$icon_dir/$conflict" ]] && [[ ! -L "$icon_dir/$conflict" ]]
- then
- rm -rf "$icon_dir/$i"
- fi
- done
- '';
- postInstall = ''
- gtk-update-icon-cache $out/share/icons/La Capitaine
- '';
- meta = with stdenv.lib; {
- description = "An icon pack designed to integrate with most desktop environments";
- homepage = https://github.com/keeferrourke/la-capitaine-icon-theme;
- license = licenses.gpl3;
- maintainers = [ maintainers.linarcx ];
- platforms = platforms.linux;
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement