nixpkgs/pkgs/data/icons/papirus-maia-icon-theme/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
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
2021-01-11 10:38:22 +01:00

46 lines
1.0 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, gtk3, breeze-icons, gnome-icon-theme, papirus-icon-theme, hicolor-icon-theme }:
stdenv.mkDerivation rec {
pname = "papirus-maia-icon-theme";
version = "2019-07-26";
src = fetchFromGitHub {
owner = "Ste74";
repo = pname;
rev = "90d47c817cc0edeed8b5a90335e669948ff4a116";
sha256 = "0d6lvdg5nw5wfaq8lxszcws174vg12ywkrqzn6czimhmhp48jf5p";
};
nativeBuildInputs = [
cmake
gtk3
];
propagatedBuildInputs = [
breeze-icons
gnome-icon-theme
papirus-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
postPatch = ''
substituteInPlace CMakeLists.txt --replace /usr "$out"
'';
postInstall = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with lib; {
description = "Manjaro variation of Papirus icon theme";
homepage = "https://github.com/Ste74/papirus-maia-icon-theme";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}