wip: kvantum theme

This commit is contained in:
Sean Kovacs 2026-02-19 17:02:50 -05:00
commit 9fbd1a5d99
Signed by: sckova
GPG key ID: 00F325187C68651A
5 changed files with 109 additions and 6 deletions

View file

@ -0,0 +1,51 @@
{
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;
};
}

View file

@ -5,6 +5,10 @@ final: prev: {
inherit (final) catppuccin-discord-git;
};
kvlibadwaita = final.callPackage ./kvlibadwaita {
inherit (final) kvlibadwaita-git;
};
openmw = prev.openmw.overrideAttrs (oldAttrs: {
pname = "openmw";
src = final.openmw-git;