nixpkgs/pkgs/by-name/al/alacritty-theme/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
907 B
Nix
Raw Permalink Normal View History

{ lib
, fetchFromGitHub
, unstableGitUpdater
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
2024-04-29 09:10:35 -06:00
pname = "alacritty-theme";
version = "0-unstable-2024-10-24";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "c424c57c8a2b6a62b6602d61ebfbc7e50f2c81d8";
hash = "sha256-KdjysVDs4oGU9gQwkW36aHmK30KiCdVNiREJOAETxNw=";
};
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;
};
})