packages: convert to self-contained flake-parts modules
Each package file now exports its own perSystem.packages.<name> definition instead of being called from a centralized packages.nix file. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1b7ea7e59b
commit
829fde6a3a
6 changed files with 459 additions and 445 deletions
|
|
@ -1,32 +1,35 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "base16-schemes";
|
||||
version = "0-unstable-2025-06-04";
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.base16-schemes = pkgs.stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "base16-schemes";
|
||||
version = "0-unstable-2025-06-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "schemes";
|
||||
rev = "317a5e10c35825a6c905d912e480dfe8e71c7559";
|
||||
hash = "sha256-d4km8W7w2zCUEmPAPUoLk1NlYrGODuVa3P7St+UrqkM=";
|
||||
};
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "schemes";
|
||||
rev = "317a5e10c35825a6c905d912e480dfe8e71c7559";
|
||||
hash = "sha256-d4km8W7w2zCUEmPAPUoLk1NlYrGODuVa3P7St+UrqkM=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/themes/
|
||||
install base16/*.yaml $out/share/themes/
|
||||
mkdir -p $out/share/themes/
|
||||
install base16/*.yaml $out/share/themes/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "All the color schemes for use in base16 packages";
|
||||
homepage = "https://github.com/tinted-theming/schemes";
|
||||
maintainers = [ lib.maintainers.DamienCassou ];
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
})
|
||||
meta = {
|
||||
description = "All the color schemes for use in base16 packages";
|
||||
homepage = "https://github.com/tinted-theming/schemes";
|
||||
maintainers = [ pkgs.lib.maintainers.DamienCassou ];
|
||||
license = pkgs.lib.licenses.mit;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue