depot/third_party/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

40 lines
910 B
Nix

{ lib
, fetchFromGitHub
, nix-update-script
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
name = "alacritty-theme";
version = "unstable-2024-01-15";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "489cb8d014e5e2d6aea8bc8a5680a10b8b13b0c3";
hash = "sha256-47F9YwhIDEvPK01zMwwUcAJ3xAetXhWfRHf1cfpuna4=";
};
dontConfigure = true;
dontBuild = true;
preferLocalBuild = true;
sourceRoot = "${self.src.name}/themes";
installPhase = ''
runHook preInstall
install -Dt $out *.toml
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;
};
})