41 lines
910 B
Nix
41 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;
|
||
|
};
|
||
|
})
|