mirror of
https://github.com/danth/stylix
synced 2025-02-16 21:38:40 +00:00
It was removed upstream in this commit:
ce919b8180 (diff-335810e528842e1863df83d8f11332a3b8ae60a56cf2f8761a10f96b34bb5bbe)
25 lines
881 B
Nix
25 lines
881 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
with config.lib.stylix.colors;
|
|
|
|
{
|
|
options.stylix.targets.nixos-icons.enable =
|
|
config.lib.stylix.mkEnableTarget "the NixOS logo" true;
|
|
|
|
config.nixpkgs.overlays = lib.mkIf config.stylix.targets.nixos-icons.enable [(self: super: {
|
|
nixos-icons = super.nixos-icons.overrideAttrs (oldAttrs: {
|
|
src = pkgs.applyPatches {
|
|
src = oldAttrs.src;
|
|
prePatch = ''
|
|
substituteInPlace logo/nix-snowflake-white.svg --replace-fail '#ffffff' '#${base05}'
|
|
|
|
# Insert attribution comment after the XML prolog
|
|
sed \
|
|
--in-place \
|
|
'2i<!-- The original NixOS logo from ${oldAttrs.src.url} is licensed under https://creativecommons.org/licenses/by/4.0 and has been modified to match the ${scheme} color scheme. -->' \
|
|
logo/nix-snowflake-white.svg
|
|
'';
|
|
};
|
|
});
|
|
})];
|
|
}
|