dracula-theme: rename ant-dracula-theme to dracula-theme and update

gstqt5
Vonfry 2020-10-06 16:13:57 +08:00
parent 8c5b1946bc
commit 0f1be68116
No known key found for this signature in database
GPG Key ID: 7E3128A1AAF71FCC
4 changed files with 40 additions and 35 deletions

View File

@ -1,34 +0,0 @@
{ stdenv, fetchurl, gtk-engine-murrine }:
let
themeName = "Ant-Dracula";
in
stdenv.mkDerivation rec {
pname = "ant-dracula-theme";
version = "1.3.0";
src = fetchurl {
url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar";
sha256 = "00b8w69xapqy8kc7zqwlfz1xpld6hibbh35djvhcnd905gzzymkd";
};
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
installPhase = ''
runHook preInstall
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}
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Dracula variant of the Ant theme";
homepage = "https://github.com/EliverLara/${themeName}";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ alexarice ];
};
}

View File

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, gtk-engine-murrine }:
let
themeName = "Dracula";
version = "2.0";
in
stdenv.mkDerivation {
pname = "dracula-theme";
inherit version;
src = fetchFromGitHub {
owner = "dracula";
repo = "gtk";
rev = "v${version}";
sha256 = "10j706gnhdplhykdisp64vzzxpzgn48b5f1fkndcp340x7hf2mf3";
};
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes/${themeName}
cp -a {assets,cinnamon,gnome-shell,gtk-2.0,gtk-3.0,gtk-3.20,index.theme,kde,metacity-1,unity,xfwm4} $out/share/themes/${themeName}
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Dracula variant of the Ant theme";
homepage = "https://github.com/dracula/gtk";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ alexarice vonfry ];
};
}

View File

@ -738,4 +738,7 @@ mapAliases ({
/* Cleanup before 21.03 */
riot-desktop = throw "riot-desktop is now element-desktop!";
riot-web = throw "riot-web is now element-web";
ant-dracula-theme = throw "ant-dracula-theme is now dracula-theme, and theme name is Dracula instead of Ant-Dracula.";
})

View File

@ -18767,7 +18767,7 @@ in
ant-bloody-theme = callPackage ../data/themes/ant-theme/ant-bloody.nix { };
ant-dracula-theme = callPackage ../data/themes/ant-theme/ant-dracula.nix { };
dracula-theme = callPackage ../data/themes/dracula-theme { };
ant-nebula-theme = callPackage ../data/themes/ant-theme/ant-nebula.nix { };