diff options
author | Felix Bühler <Stunkymonkey@users.noreply.github.com> | 2023-10-28 17:28:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 17:28:28 +0200 |
commit | 189d2641716be9b862f9619bb3948a7e25f62f41 (patch) | |
tree | 652786c89913009055ca62c7dc3733162d0e5a6e /pkgs/data | |
parent | 33aeaa4c2025563e68c5ba13321e0b16a739ec6a (diff) | |
parent | 53d0f6b8e3596f0c3a136c0e4d0f287cfa71a0e2 (diff) |
Merge pull request #263004 from nbraud/pkgs/alacritty-theme
alacritty-theme: init at unstable-2023-10-12
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/themes/alacritty-theme/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/data/themes/alacritty-theme/default.nix b/pkgs/data/themes/alacritty-theme/default.nix new file mode 100644 index 0000000000000..9ac00f8f687fb --- /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; + }; +}) |