nixpkgs-suyu/pkgs/data/themes/orchis/default.nix

43 lines
1,018 B
Nix
Raw Normal View History

2021-01-30 21:20:34 +01:00
{ lib, stdenv, fetchFromGitHub, gtk3, gnome-themes-extra, gtk-engine-murrine
, accentColor ? "default" }:
stdenv.mkDerivation rec {
pname = "orchis";
2021-03-13 11:27:44 +01:00
version = "2021-02-28";
2021-01-30 21:20:34 +01:00
src = fetchFromGitHub {
repo = "Orchis-theme";
owner = "vinceliuice";
rev = version;
2021-03-13 11:27:44 +01:00
sha256 = "sha256-HmC2e34n1eThFGgw9OzSgp5VFJOylyozpXgk9SO84+I=";
2021-01-30 21:20:34 +01:00
};
nativeBuildInputs = [ gtk3 ];
buildInputs = [ gnome-themes-extra ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
dontPatch = true;
dontConfigure = true;
dontBuild = true;
preInstall = ''
mkdir -p $out/share/themes
'';
installPhase = ''
runHook preInstall
bash install.sh -d $out/share/themes -t ${accentColor}
runHook postInstall
'';
meta = with lib; {
description = "A Material Design theme for GNOME/GTK based desktop environments.";
homepage = "https://github.com/vinceliuice/Orchis-theme";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.fufexan ];
};
}