nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 66 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gdk-pixbuf, 6 librsvg, 7 gtk-engine-murrine, 8 gtk3, 9 adwaita-icon-theme, 10 gnome-icon-theme, 11 numix-icon-theme-circle, 12 hicolor-icon-theme, 13}: 14 15stdenv.mkDerivation (finalAttrs: { 16 pname = "canta-theme"; 17 version = "2021-09-08"; 18 19 src = fetchFromGitHub { 20 owner = "vinceliuice"; 21 repo = "canta-theme"; 22 tag = finalAttrs.version; 23 sha256 = "05h42nrggb6znzjcbh4lqqfcm41h4r85n3vwimp3l4lq5p90igr2"; 24 }; 25 26 nativeBuildInputs = [ 27 gtk3 28 ]; 29 30 buildInputs = [ 31 gdk-pixbuf 32 librsvg 33 ]; 34 35 propagatedBuildInputs = [ 36 adwaita-icon-theme 37 gnome-icon-theme 38 numix-icon-theme-circle 39 hicolor-icon-theme 40 ]; 41 42 propagatedUserEnvPkgs = [ 43 gtk-engine-murrine 44 ]; 45 46 dontDropIconThemeCache = true; 47 48 installPhase = '' 49 patchShebangs . 50 mkdir -p $out/share/themes 51 name= ./install.sh --dest $out/share/themes 52 rm $out/share/themes/*/{AUTHORS,COPYING} 53 install -D -t $out/share/backgrounds wallpaper/canta-wallpaper.svg 54 mkdir -p $out/share/icons 55 cp -a icons/Canta $out/share/icons 56 gtk-update-icon-cache $out/share/icons/Canta 57 ''; 58 59 meta = { 60 description = "Flat Design theme for GTK based desktop environments"; 61 homepage = "https://github.com/vinceliuice/Canta-theme"; 62 license = lib.licenses.gpl2Only; 63 platforms = lib.platforms.linux; # numix-icon-theme-circle unavailable in darwin 64 maintainers = [ lib.maintainers.romildo ]; 65 }; 66})