1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/data/themes/canta/default.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

2020-05-17 15:14:18 +01:00
{ stdenv
, fetchFromGitHub
, gdk-pixbuf
, librsvg
, gtk-engine-murrine
, gtk3
, gnome3
, gnome-icon-theme
, numix-icon-theme-circle
, hicolor-icon-theme
}:
2020-01-31 17:51:27 +00:00
stdenv.mkDerivation rec {
pname = "canta-theme";
2020-05-17 15:07:32 +01:00
version = "2020-05-17";
2020-01-31 17:51:27 +00:00
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
2020-05-17 15:07:32 +01:00
sha256 = "0b9ffkw611xxb2wh43sjqla195jp0ygxph5a8dvifkxdw6nxc2y0";
2020-01-31 17:51:27 +00:00
};
2020-05-17 15:14:18 +01:00
nativeBuildInputs = [
gtk3
];
2020-05-17 15:08:57 +01:00
2020-05-17 15:14:18 +01:00
buildInputs = [
gdk-pixbuf
librsvg
];
2020-01-31 17:51:27 +00:00
2020-05-17 15:14:18 +01:00
propagatedBuildInputs = [
gnome3.adwaita-icon-theme
gnome-icon-theme
numix-icon-theme-circle
hicolor-icon-theme
];
2020-05-17 15:08:57 +01:00
2020-05-17 15:14:18 +01:00
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
2020-01-31 17:51:27 +00:00
2020-05-17 15:08:57 +01:00
dontDropIconThemeCache = true;
2020-01-31 17:51:27 +00:00
installPhase = ''
patchShebangs .
mkdir -p $out/share/themes
2020-05-17 15:08:57 +01:00
name= ./install.sh --dest $out/share/themes
2020-01-31 17:51:27 +00:00
rm $out/share/themes/*/{AUTHORS,COPYING}
2020-05-17 15:08:57 +01:00
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
2020-01-31 17:51:27 +00:00
'';
meta = with stdenv.lib; {
description = "Flat Design theme for GTK based desktop environments";
homepage = "https://github.com/vinceliuice/Canta-theme";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}