mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Merge pull request #224352 from sents/chili-sddm-theme
Add Chili sddm theme
This commit is contained in:
commit
2995f57b67
@ -14708,6 +14708,13 @@
|
|||||||
githubId = 1286668;
|
githubId = 1286668;
|
||||||
name = "Thilo Uttendorfer";
|
name = "Thilo Uttendorfer";
|
||||||
};
|
};
|
||||||
|
sents = {
|
||||||
|
email = "finn@krein.moe";
|
||||||
|
github = "sents";
|
||||||
|
githubId = 26575793;
|
||||||
|
matrix = "@sents:matrix.org";
|
||||||
|
name = "Finn Krein";
|
||||||
|
};
|
||||||
sephalon = {
|
sephalon = {
|
||||||
email = "me@sephalon.net";
|
email = "me@sephalon.net";
|
||||||
github = "sephalon";
|
github = "sephalon";
|
||||||
|
61
pkgs/data/themes/chili-sddm/default.nix
Normal file
61
pkgs/data/themes/chili-sddm/default.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, qtgraphicaleffects
|
||||||
|
, themeConfig ? { }
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
customToString = x: if builtins.isBool x then lib.boolToString x else toString x;
|
||||||
|
configLines = lib.mapAttrsToList (name: value: lib.nameValuePair name value) themeConfig;
|
||||||
|
configureTheme = "cp theme.conf theme.conf.orig \n" +
|
||||||
|
(lib.concatMapStringsSep "\n"
|
||||||
|
(configLine:
|
||||||
|
"grep -q '^${configLine.name}=' theme.conf || echo '${configLine.name}=' >> \"$1\"\n" +
|
||||||
|
"sed -i -e 's/^${configLine.name}=.*$/${configLine.name}=${
|
||||||
|
lib.escape [ "/" "&" "\\"] (customToString configLine.value)
|
||||||
|
}/' theme.conf"
|
||||||
|
)
|
||||||
|
configLines);
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "sddm-chili-theme";
|
||||||
|
version = "0.1.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "MarianArlt";
|
||||||
|
repo = "sddm-chili";
|
||||||
|
rev = "6516d50176c3b34df29003726ef9708813d06271";
|
||||||
|
sha256 = "036fxsa7m8ymmp3p40z671z163y6fcsa9a641lrxdrw225ssq5f3";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
qtgraphicaleffects
|
||||||
|
];
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
preInstall = configureTheme;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/sddm/themes/chili
|
||||||
|
|
||||||
|
mv * $out/share/sddm/themes/chili/
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
mkdir -p $out/nix-support
|
||||||
|
|
||||||
|
echo ${qtgraphicaleffects} >> $out/nix-support/propagated-user-env-packages
|
||||||
|
'';
|
||||||
|
meta = with lib; {
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with lib.maintainers; [ sents ];
|
||||||
|
homepage = "https://github.com/MarianArlt/sddm-chili";
|
||||||
|
description = "The chili login theme for SDDM";
|
||||||
|
longDescription = ''
|
||||||
|
Chili is hot, just like a real chili!
|
||||||
|
Spice up the login experience for your users, your family and yourself.
|
||||||
|
Chili reduces all the clutter and leaves you with a clean, easy to use, login interface with a modern yet classy touch.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
@ -28068,6 +28068,8 @@ with pkgs;
|
|||||||
|
|
||||||
schedtool = callPackage ../os-specific/linux/schedtool { };
|
schedtool = callPackage ../os-specific/linux/schedtool { };
|
||||||
|
|
||||||
|
sddm-chili-theme = libsForQt5.callPackage ../data/themes/chili-sddm { };
|
||||||
|
|
||||||
sdparm = callPackage ../os-specific/linux/sdparm { };
|
sdparm = callPackage ../os-specific/linux/sdparm { };
|
||||||
|
|
||||||
sdrangel = libsForQt5.callPackage ../applications/radio/sdrangel { };
|
sdrangel = libsForQt5.callPackage ../applications/radio/sdrangel { };
|
||||||
|
Loading…
Reference in New Issue
Block a user