nixpkgs/pkgs/data/themes/ant-theme/ant.nix

35 lines
915 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, gtk-engine-murrine }:
2018-12-09 00:27:15 +01:00
2019-08-28 10:28:46 +02:00
let
themeName = "Ant";
in
2018-12-09 00:27:15 +01:00
stdenv.mkDerivation rec {
pname = "ant-theme";
2019-01-19 20:38:48 +01:00
version = "1.3.0";
2018-12-09 00:27:15 +01:00
src = fetchurl {
2019-08-28 10:28:46 +02:00
url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar";
2019-01-19 20:38:48 +01:00
sha256 = "1r795v96ywzcb4dq08q2fdbmfia32g36cc512mhy41s8fb1a47dz";
2018-12-09 00:27:15 +01:00
};
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
installPhase = ''
runHook preInstall
2019-08-28 10:28:46 +02:00
mkdir -p $out/share/themes/${themeName}
cp -a * $out/share/themes/${themeName}
rm -r $out/share/themes/${themeName}/{Art,LICENSE,README.md,gtk-2.0/render-assets.sh}
2018-12-09 00:27:15 +01:00
runHook postInstall
'';
meta = with lib; {
2018-12-09 00:27:15 +01:00
description = "A flat and light theme with a modern look";
2019-08-28 10:28:46 +02:00
homepage = "https://github.com/EliverLara/${themeName}";
2018-12-09 00:27:15 +01:00
license = licenses.gpl3;
platforms = platforms.all;
2019-08-28 10:28:46 +02:00
maintainers = with maintainers; [ alexarice ];
2018-12-09 00:27:15 +01:00
};
}