Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24805,6 +24805,11 @@
githubId = 74688871;
name = "Tochukwu Ahanonu";
};
tohmais = {
github = "tohmais";
githubId = 48165643;
name = "tohmais";
};
tomahna = {
email = "kevin.rauscher@tomahna.fr";
github = "Tomahna";
Expand Down
48 changes: 48 additions & 0 deletions pkgs/data/themes/sddm-tokyo-night/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
stdenvNoCC,
pkgs,
themeConfig ? null,
}:
stdenvNoCC.mkDerivation rec {
pname = "sddm-tokyo-night";
version = "0-unstable-2023-06-13";

src = pkgs.fetchFromGitHub {
owner = "siddrs";
repo = "tokyo-night-sddm";
rev = "320c8e74ade1e94f640708eee0b9a75a395697c6";
sha256 = "1gf074ypgc4r8pgljd8lydy0l5fajrl2pi2avn5ivacz4z7ma595";
};

dontWrapQtApps = true;

propagatedUserEnvPkgs = with pkgs.libsForQt5.qt5; [
qtquickcontrols2
qtgraphicaleffects
qtsvg
];

installPhase = let
iniFormat = pkgs.formats.ini {};
configFile = iniFormat.generate "" {General = themeConfig;};

basePath = "$out/share/sddm/themes/tokyo-night";
in
''
mkdir -p ${basePath}
cp -r $src/* ${basePath}
''
+ lib.optionalString (themeConfig != null) ''
ln -sf ${configFile} ${basePath}/theme.conf.user
'';

meta = {
description = "Tokyo Night for SDDM";
homepage = "https://github.com/${src.owner}/${src.repo}";
license = lib.licenses.lgpl21;

platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [tohmais];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11424,6 +11424,8 @@ with pkgs;

sddm-sugar-dark = libsForQt5.callPackage ../data/themes/sddm-sugar-dark { };

sddm-tokyo-night = libsForQt5.callPackage ../data/themes/sddm-tokyo-night { };

sdrangel = qt6Packages.callPackage ../applications/radio/sdrangel { };

sgx-sdk = callPackage ../os-specific/linux/sgx/sdk { };
Expand Down
Loading