mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
zafiro-icons: 1.1 -> 1.2
Update to the latest upstream release: https://github.com/zayronxio/Zafiro-icons/releases/tag/1.2 Includes some refactoring: - use stdenvNoCC instead of stdenv - run preInstall and postInstall hooks in the installPhase - deduplicate files with jdupes - set dontPatchELF and dontRewriteSymlinks to true. These fixup steps are slow and unnecessary for this package. - remove single file with problematic filename causing gtk-update-icon-cache to fail
This commit is contained in:
parent
c63e60c0c2
commit
da4602bf6b
@ -1,18 +1,19 @@
|
||||
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme }:
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme, jdupes }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "zafiro-icons";
|
||||
version = "1.1";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zayronxio";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "05h8qm9izjbp8pnl9jpbw3y9sddhp0zmg94fm1k4d4hhdqnakqhv";
|
||||
sha256 = "sha256-Awc5Sw4X25pXEd4Ob0u6A6Uu0e8FYfwp0fEl90vrsUE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
jdupes
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -26,10 +27,23 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# remove copy file, as it is there clearly by mistake
|
||||
rm "apps/scalable/android-sdk (copia 1).svg"
|
||||
|
||||
mkdir -p $out/share/icons/Zafiro-icons
|
||||
cp -a * $out/share/icons/Zafiro-icons
|
||||
gtk-update-icon-cache "$out"/share/icons/Zafiro-icons
|
||||
|
||||
gtk-update-icon-cache $out/share/icons/Zafiro-icons
|
||||
|
||||
jdupes --link-soft --recurse $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user