depot/third_party/nixpkgs/pkgs/by-name/nu/numix-icon-theme-circle/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

58 lines
1.2 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
gtk3,
numix-icon-theme,
hicolor-icon-theme,
gitUpdater,
}:
stdenvNoCC.mkDerivation rec {
pname = "numix-icon-theme-circle";
version = "25.01.31";
src = fetchFromGitHub {
owner = "numixproject";
repo = pname;
rev = version;
sha256 = "sha256-+gb4nyVNF6bjYCEiRq/L3wO4ZoUG4lt5l0vxye8inrQ=";
};
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [
numix-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -a Numix-Circle{,-Light} $out/share/icons
for panel in $out/share/icons/*/*/panel; do
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
done
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Numix icon theme (circle version)";
homepage = "https://numixproject.github.io";
license = licenses.gpl3Only;
# darwin cannot deal with file names differing only in case
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}