mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 02:14:36 +00:00
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
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, gdk-pixbuf
|
|
, librsvg
|
|
, gtk-engine-murrine
|
|
, gtk3
|
|
, gnome3
|
|
, gnome-icon-theme
|
|
, numix-icon-theme-circle
|
|
, hicolor-icon-theme
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "canta-theme";
|
|
version = "2020-05-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0b9ffkw611xxb2wh43sjqla195jp0ygxph5a8dvifkxdw6nxc2y0";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gtk3
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
librsvg
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gnome3.adwaita-icon-theme
|
|
gnome-icon-theme
|
|
numix-icon-theme-circle
|
|
hicolor-icon-theme
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
installPhase = ''
|
|
patchShebangs .
|
|
mkdir -p $out/share/themes
|
|
name= ./install.sh --dest $out/share/themes
|
|
rm $out/share/themes/*/{AUTHORS,COPYING}
|
|
install -D -t $out/share/backgrounds wallpaper/canta-wallpaper.svg
|
|
mkdir -p $out/share/icons
|
|
cp -a icons/Canta $out/share/icons
|
|
gtk-update-icon-cache $out/share/icons/Canta
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Flat Design theme for GTK based desktop environments";
|
|
homepage = "https://github.com/vinceliuice/Canta-theme";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux; # numix-icon-theme-circle unavailable in darwin
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|