depot/third_party/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

40 lines
910 B
Nix

{ lib
, fetchFromGitHub
, nix-update-script
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
name = "alacritty-theme";
version = "unstable-2023-10-26";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "e1b08b5bc06d07dd65f5e72b12fd7f736e0e7928";
hash = "sha256-wf0aT2uGe/6Ifv//lQStTm24yt2FX3kWQq5ebdmdPJ0=";
};
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;
};
})