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

46 lines
986 B
Nix
Raw Normal View History

2021-04-21 17:37:27 +02:00
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, gnome-themes-extra
, gtk-engine-murrine
, sassc
, accentColor ? "default"
}:
stdenvNoCC.mkDerivation rec {
pname = "orchis-theme";
2021-08-08 17:27:43 +02:00
version = "2021-06-25";
2021-01-30 21:20:34 +01:00
src = fetchFromGitHub {
repo = "Orchis-theme";
owner = "vinceliuice";
rev = version;
2021-08-08 17:27:43 +02:00
sha256 = "sha256-j0nsw1yR1yOckXiIMtzhC3w6kvfzxQQHgwdY6l0OuXw=";
2021-01-30 21:20:34 +01:00
};
2021-04-21 17:37:27 +02:00
nativeBuildInputs = [ gtk3 sassc ];
2021-01-30 21:20:34 +01:00
buildInputs = [ gnome-themes-extra ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
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 ];
};
}