mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
907 B
Nix
41 lines
907 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
, stdenvNoCC
|
|
, ... }:
|
|
|
|
stdenvNoCC.mkDerivation (self: {
|
|
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;
|
|
};
|
|
})
|