23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
40 lines
910 B
Nix
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;
|
|
};
|
|
})
|