wip: kvantum theme
This commit is contained in:
parent
bda3095a15
commit
9fbd1a5d99
5 changed files with 109 additions and 6 deletions
51
packages/kvlibadwaita/default.nix
Normal file
51
packages/kvlibadwaita/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue