54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gdk-pixbuf
|
|
, gnome-themes-extra
|
|
, gtk-engine-murrine
|
|
, librsvg
|
|
, sassc
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qogir-theme";
|
|
version = "2021-11-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1ri2dh34vw2pfv0lxzk9f4755v0d4ilnr6fzj3raw9b5fp5zzi91";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
sassc
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf # pixbuf engine for Gtk2
|
|
gnome-themes-extra # adwaita engine for Gtk2
|
|
librsvg # pixbuf loader for svg
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine # murrine engine for Gtk2
|
|
];
|
|
|
|
installPhase = ''
|
|
patchShebangs .
|
|
mkdir -p $out/share/themes
|
|
name= ./install.sh -t all -d $out/share/themes
|
|
mkdir -p $out/share/doc/${pname}
|
|
cp -a src/firefox $out/share/doc/${pname}
|
|
rm $out/share/themes/*/{AUTHORS,COPYING}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Flat Design theme for GTK based desktop environments";
|
|
homepage = "https://vinceliuice.github.io/Qogir-theme";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|