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

41 lines
907 B
Nix

{ lib
, fetchFromGitHub
, unstableGitUpdater
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
pname = "alacritty-theme";
version = "0-unstable-2024-07-31";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "4091fddff8da892d5594e94116927c7445620867";
hash = "sha256-1tt4GL3KNa3S4dEFiRZf4B1+CM6e7/gO3Q34847lYkI=";
};
dontConfigure = true;
dontBuild = true;
preferLocalBuild = true;
sourceRoot = "${self.src.name}/themes";
installPhase = ''
runHook preInstall
install -Dt $out *.toml
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
};
meta = with lib; {
description = "Collection of Alacritty color schemes";
homepage = "https://alacritty.org/";
license = licenses.asl20;
maintainers = [ maintainers.nicoo ];
platforms = platforms.all;
};
})