nixpkgs/pkgs/data/themes/adementary/default.nix

37 lines
896 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, gtk3, sassc }:
2018-10-01 14:25:52 +00:00
stdenv.mkDerivation rec {
pname = "adementary-theme";
version = "201905r1";
2018-10-01 14:25:52 +00:00
src = fetchFromGitHub {
owner = "hrdwrrsk";
2019-05-01 20:32:39 +00:00
repo = pname;
2018-10-01 14:25:52 +00:00
rev = version;
sha256 = "14y5s18g9r2c1ciw1skfksn09gvqgy8vjvwbr0z8gacf0jc2apqk";
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 lib; {
description = "Adwaita-based GTK theme with design influence from elementary OS and Vertex GTK theme";
homepage = "https://github.com/hrdwrrsk/adementary-theme";
2018-10-01 14:25:52 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.linux;
};
}