3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/icons/la-capitaine-icon-theme/default.nix
kilianar e4c43186c4 pkgs/data/icons: use stdenvNoCC where possible
Most icons themes just copy a bunch of files from the source to the
installation directory and therefore work perfectly fine with
stdenvNoCC.
All themes in pkgs/data/icons that still use stdenv after this change
are failing to build with stdenvNoCC.
2022-07-06 10:42:05 -03:00

53 lines
1.2 KiB
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, breeze-icons
, elementary-icon-theme
, gnome-icon-theme
, hicolor-icon-theme
}:
stdenvNoCC.mkDerivation rec {
pname = "la-capitaine-icon-theme";
version = "0.6.2";
src = fetchFromGitHub {
owner = "keeferrourke";
repo = pname;
rev = "v${version}";
sha256 = "0id2dddx6rl71472l47vafx968wnklmq6b980br68w82kcvqczzs";
};
propagatedBuildInputs = [
breeze-icons
elementary-icon-theme
gnome-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
postPatch = ''
patchShebangs configure
substituteInPlace configure \
--replace 'DISTRO=$(format "$(lsb_release -si 2>/dev/null)")' 'DISTRO=nixos'
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons/$pname
cp -a * $out/share/icons/$pname
rm $out/share/icons/$pname/{configure,COPYING,LICENSE,*.md}
runHook postInstall
'';
meta = with lib; {
description = "Icon theme inspired by macOS and Google's Material Design";
homepage = "https://github.com/keeferrourke/la-capitaine-icon-theme";
license = with licenses; [ gpl3Plus mit ];
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}