4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zafiro-icons";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zayronxio";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "05h8qm9izjbp8pnl9jpbw3y9sddhp0zmg94fm1k4d4hhdqnakqhv";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gtk3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
breeze-icons
|
|
gnome-icon-theme
|
|
numix-icon-theme
|
|
numix-icon-theme-circle
|
|
hicolor-icon-theme
|
|
# still missing parent icon themes: Surfn
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/icons/Zafiro-icons
|
|
cp -a * $out/share/icons/Zafiro-icons
|
|
gtk-update-icon-cache "$out"/share/icons/Zafiro-icons
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Icon pack flat with light colors";
|
|
homepage = "https://github.com/zayronxio/Zafiro-icons";
|
|
license = with licenses; [ gpl3 ];
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|