danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
906 stars 105 forks source link

nixos-icons: `white.svg` -> `nix-snowflake-white.svg` #343

Closed sodiboo closed 2 months ago

sodiboo commented 2 months ago

Refactors to nixos-artwork broke system builds with stylix by renaming files. Refactors in nixpkgs independently broke it by modifying the sourceRoot attribute.


logo/white.svg was renamed to nix-snowflake-white.svg


Additionally, the source root of the derivation has been moved in the relevant nixpkgs PR

This involves the logo directory being immutable in the patch phase now. Therefore, the previously used approach didn't work, so i've moved the patch phase into applyPatches on src directly rather than using mkDerivation's patchPhase.


I've tested that stuff works fine on my machine and the produced artworks are indeed themed correctly.