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-12-25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1h10yqz3i59bxhkk2r2p8as8g9ibx38bbpdxi7jgg2pxr581mn4f";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|