diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2020-10-11 16:07:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 16:07:12 -0300 |
commit | e2064ae54263bd3fbe2296ae54c87b6818dd1ac1 (patch) | |
tree | 273da99366f26e2ea8a4daccc367acf443f290bb /pkgs | |
parent | 8294af02845210169290240e6fd356f6b7ea3f11 (diff) | |
parent | 0f1be681168c4cc8609ce1fd31cbad6639056aa5 (diff) |
Merge pull request #99704 from Vonfry/update/dracula
dracula-theme: 1.3.0 -> 2.0 and rename ant-dracula to dracula-theme
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/data/themes/ant-theme/ant-dracula.nix | 34 | ||||
-rw-r--r-- | pkgs/data/themes/dracula-theme/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/aliases.nix | 3 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
4 files changed, 40 insertions, 35 deletions
diff --git a/pkgs/data/themes/ant-theme/ant-dracula.nix b/pkgs/data/themes/ant-theme/ant-dracula.nix deleted file mode 100644 index e365ab94c300..000000000000 --- a/pkgs/data/themes/ant-theme/ant-dracula.nix +++ /dev/null @@ -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 ]; - }; -} diff --git a/pkgs/data/themes/dracula-theme/default.nix b/pkgs/data/themes/dracula-theme/default.nix new file mode 100644 index 000000000000..87afbedf8fb6 --- /dev/null +++ b/pkgs/data/themes/dracula-theme/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 26ca1e0358af..9ae210ea051f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -741,4 +741,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."; + }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe46c8bf63ac..c540fc45b971 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18811,7 +18811,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 { }; |