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
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, pkgconfig, intltool, gtk3, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, xfce }:
|
|
|
|
let
|
|
category = "art";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xfce4-icon-theme";
|
|
version = "4.4.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "1yk6rx3zr9grm4jwpjvqdkl13pisy7qn1wm5cqzmd2kbsn96cy6l";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
intltool
|
|
gtk3
|
|
];
|
|
|
|
buildInputs = [
|
|
gnome-icon-theme
|
|
tango-icon-theme
|
|
hicolor-icon-theme
|
|
# missing parent icon theme Industrial
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
passthru.updateScript = xfce.updateScript {
|
|
inherit pname version;
|
|
attrPath = "xfce.${pname}";
|
|
versionLister = xfce.archiveLister category pname;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.xfce.org/";
|
|
description = "Icons for Xfce";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.eelco ];
|
|
};
|
|
}
|