nixpkgs/pkgs/misc/themes/tetra/default.nix

37 lines
916 B
Nix
Raw Normal View History

2018-10-01 14:29:28 +00:00
{ stdenv, fetchFromGitHub, gtk3, sassc }:
2018-10-01 14:25:52 +00:00
stdenv.mkDerivation rec {
name = "tetra-gtk-theme-${version}";
version = "0.2.0";
2018-10-01 14:25:52 +00:00
src = fetchFromGitHub {
owner = "hrdwrrsk";
repo = "tetra-gtk-theme";
2018-10-01 14:25:52 +00:00
rev = version;
sha256 = "1lzkmswv3ml2zj80z067j1hj1cvpdcl86jllahqx3jwnmr0a4fhd";
2018-10-01 14:25:52 +00:00
};
preBuild = ''
# Shut up inkscape's warnings
export HOME="$NIX_BUILD_ROOT"
'';
2018-10-01 14:29:28 +00:00
nativeBuildInputs = [ sassc ];
2018-10-01 14:25:52 +00:00
buildInputs = [ gtk3 ];
postPatch = "patchShebangs .";
2018-10-01 14:29:28 +00:00
installPhase = ''
mkdir -p $out/share/themes
./install.sh -d $out/share/themes
'';
2018-10-01 14:25:52 +00: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;
};
}