diff --git a/pkgs/data/themes/alacritty-theme/default.nix b/pkgs/data/themes/alacritty-theme/default.nix new file mode 100644 index 000000000000..9ac00f8f687f --- /dev/null +++ b/pkgs/data/themes/alacritty-theme/default.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, nix-update-script +, stdenvNoCC +, ... }: + +stdenvNoCC.mkDerivation (self: { + name = "alacritty-theme"; + version = "unstable-2023-10-12"; + + src = fetchFromGitHub { + owner = "alacritty"; + repo = "alacritty-theme"; + rev = "4cb179606c3dfc7501b32b6f011f9549cee949d3"; + hash = "sha256-Ipe6LHr83oBdBMV3u4xrd+4zudHXiRBamUa/cOuHleY="; + }; + + dontConfigure = true; + dontBuild = true; + preferLocalBuild = true; + + sourceRoot = "${self.src.name}/themes"; + installPhase = '' + runHook preInstall + install -Dt $out *.yaml + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; + }; + + meta = with lib; { + description = "Collection of Alacritty color schemes"; + homepage = "https://alacritty.org/"; + license = licenses.asl20; + maintainers = [ maintainers.nicoo ]; + platforms = platforms.all; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c3ad477f7427..5df07f968a6a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29020,6 +29020,8 @@ with pkgs; aileron = callPackage ../data/fonts/aileron { }; + alacritty-theme = callPackage ../data/themes/alacritty-theme { }; + albatross = callPackage ../data/themes/albatross { }; alegreya = callPackage ../data/fonts/alegreya { };