diff options
Diffstat (limited to 'nixpkgs/pkgs/data/themes/alacritty-theme')
-rw-r--r-- | nixpkgs/pkgs/data/themes/alacritty-theme/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix b/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix new file mode 100644 index 000000000000..27c28cad1430 --- /dev/null +++ b/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, unstableGitUpdater +, stdenvNoCC +, ... }: + +stdenvNoCC.mkDerivation (self: { + pname = "alacritty-theme"; + version = "0-unstable-2024-04-24"; + + src = fetchFromGitHub { + owner = "alacritty"; + repo = "alacritty-theme"; + rev = "e866efd4ac4e1b4b05892bf9f9bae0540754bca3"; + hash = "sha256-Uv/Nv2aipnMBM7F4IoUiLF4U/27SF9H/EEfnwGfjiIs="; + }; + + dontConfigure = true; + dontBuild = true; + preferLocalBuild = true; + + sourceRoot = "${self.src.name}/themes"; + installPhase = '' + runHook preInstall + install -Dt $out *.toml + runHook postInstall + ''; + + passthru.updateScript = unstableGitUpdater { + hardcodeZeroVersion = true; + }; + + meta = with lib; { + description = "Collection of Alacritty color schemes"; + homepage = "https://alacritty.org/"; + license = licenses.asl20; + maintainers = [ maintainers.nicoo ]; + platforms = platforms.all; + }; +}) |