nixpkgs/pkgs/data/themes/alacritty-theme/default.nix

40 lines
910 B
Nix

{ lib
, fetchFromGitHub
, nix-update-script
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
name = "alacritty-theme";
version = "unstable-2023-11-07";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "808b81b2e88884e8eca5d951b89f54983fa6c237";
hash = "sha256-g5tM6VBPLXin5s7X0PpzWOOGTEwHpVUurWOPqM/O13A=";
};
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;
};
})