fix(sddm): Move pkg derv to it's own file
Some checks failed
Release / Publish to Flake registries (push) Has been cancelled
CI / Format Nix files (push) Has been cancelled
CI / Test Modules (push) Has been cancelled
CI / Validate sources (push) Has been cancelled
Release / Make release (push) Has been cancelled
Build & deploy website / Build site (push) Has been cancelled
Build & deploy website / Deploy website (push) Has been cancelled

Nix was complaining that it wasn't a valid package so moved to it's own
file and called with callPackage()
This commit is contained in:
punkfairie 2024-10-20 18:37:56 -07:00
parent fa9adc6173
commit 558c12035e
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 23 additions and 22 deletions

View file

@ -0,0 +1,21 @@
{
stdenvNoCC,
libsForQt5,
sources,
}:
stdenvNoCC.mkDerivation {
pname = "sddm-rose-pine-theme";
version = "1.2";
dontBuild = true;
propagatedUserEnvPkgs = [
libsForQt5.qt5.qtgraphicaleffects
];
src = sources.sddm-rose-pine;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/rose-pine
'';
}

View file

@ -1,6 +1,7 @@
{
lib,
config,
pkgs,
...
}: let
inherit (config.rose-pine) sources;
@ -13,28 +14,7 @@ in {
services.displayManager.sddm.theme = "rose-pine";
environment.systemPackages = [
(
{
stdenvNoCC,
libsForQt5,
}:
stdenvNoCC.mkDerivation {
pname = "sddm-rose-pine-theme";
version = "1.2";
dontBuild = true;
propagatedUserEnvPkgs = [
libsForQt5.qt5.qtgraphicaleffects
];
src = sources.sddm;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/rose-pine
'';
}
)
(pkgs.callPackage ./sddm-rose-pine-pkg.nix {inherit sources;})
];
};
}