{ lib, stdenvNoCC, kvlibadwaita-git, colorScheme ? null, }: stdenvNoCC.mkDerivation { pname = "kvlibadwaita"; version = "git"; # Pulls from the flake-provided git variable src = kvlibadwaita-git; # We take the colors as an input but do nothing with them yet per your instructions. # They are passed into the derivation environment just in case, but unused for now. passthru = { inherit colorScheme; }; # Standard phases are skipped for pure file-copying derivations to save time dontConfigure = true; dontBuild = true; installPhase = '' runHook preInstall # Recreate the exact requested directory structure in the output mkdir -p $out/src/Colors mkdir -p $out/src/KvLibadwaita # Export Colors cp "src/Colors/Libadwaita Dark.colors" "$out/src/Colors/" cp "src/Colors/Libadwaita Light.colors" "$out/src/Colors/" # Export KvLibadwaita files cp "src/KvLibadwaita/KvLibadwaita.kvconfig" "$out/src/KvLibadwaita/" cp "src/KvLibadwaita/KvLibadwaita.svg" "$out/src/KvLibadwaita/" cp "src/KvLibadwaita/KvLibadwaitaDark.kvconfig" "$out/src/KvLibadwaita/" cp "src/KvLibadwaita/KvLibadwaitaDark.svg" "$out/src/KvLibadwaita/" runHook postInstall ''; meta = with lib; { description = "Libadwaita theme for Kvantum"; homepage = "https://github.com/GabePoel/kvlibadwaita"; # Update if pointing to a specific fork license = licenses.gpl3Only; platforms = platforms.linux; }; }