2018-10-01 15:29:28 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, sassc }:
|
2018-10-01 15:25:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-01 21:26:34 +01:00
|
|
|
name = "tetra-gtk-theme-${version}";
|
2018-10-03 22:49:48 +01:00
|
|
|
version = "0.2.0";
|
2018-10-01 15:25:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hrdwrrsk";
|
2018-10-01 21:26:34 +01:00
|
|
|
repo = "tetra-gtk-theme";
|
2018-10-01 15:25:52 +01:00
|
|
|
rev = version;
|
2018-10-03 22:49:48 +01:00
|
|
|
sha256 = "1lzkmswv3ml2zj80z067j1hj1cvpdcl86jllahqx3jwnmr0a4fhd";
|
2018-10-01 15:25:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
# Shut up inkscape's warnings
|
|
|
|
export HOME="$NIX_BUILD_ROOT"
|
|
|
|
'';
|
|
|
|
|
2018-10-01 15:29:28 +01:00
|
|
|
nativeBuildInputs = [ sassc ];
|
2018-10-01 15:25:52 +01:00
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
2018-10-01 15:29:28 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/themes
|
|
|
|
./install.sh -d $out/share/themes
|
|
|
|
'';
|
2018-10-01 15:25:52 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Adwaita-based gtk+ theme with design influence from elementary OS and Vertex gtk+ theme.";
|
|
|
|
homepage = https://github.com/hrdwrrsk/tetra-gtk-theme;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|