depot/third_party/nixpkgs/pkgs/data/themes/canta/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

64 lines
1.4 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, gdk-pixbuf
, librsvg
, gtk-engine-murrine
, gtk3
, gnome
, gnome-icon-theme
, numix-icon-theme-circle
, hicolor-icon-theme
}:
stdenv.mkDerivation rec {
pname = "canta-theme";
version = "2021-07-06";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
sha256 = "sha256-dz78h9Qq25+/i6fmw/zGlPq3DVQB3ADYwehgaWReMQ8=";
};
nativeBuildInputs = [
gtk3
];
buildInputs = [
gdk-pixbuf
librsvg
];
propagatedBuildInputs = [
gnome.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 ];
};
}