nixos/pkgs/sddm_midnight/default.nix

34 lines
664 B
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
stdenv,
fetchFromGitHub,
qtstyleplugin-kvantum-qt4,
}:
2019-02-26 13:44:40 +01:00
stdenv.mkDerivation {
name = "sddm_midnight";
version = 1.0;
src = fetchFromGitHub {
2023-09-11 20:23:04 +02:00
owner = "Rokin05";
2019-02-26 13:44:40 +01:00
repo = "midnight-kde";
rev = "1a4771146a8d6f3b45b1da32877495c9e562d193";
sha256 = "10br96pf4dppk9nk7yvf7h9zja40k4c6rhwmqcaxxcjlhpvjmhkj";
};
2023-09-11 20:23:04 +02:00
buildInputs = [qtstyleplugin-kvantum-qt4];
2019-02-26 13:44:40 +01:00
patchPhase = ''
substituteInPlace sddm/themes/Midnight/Main.qml --replace /usr $out
'';
installPhase = ''
mkdir -p $out/share
cp -R \
"aurorae" \
"color-schemes" \
"Kvantum" \
"plasma" \
"sddm" \
"$out/share"
'';
}