Skip to content

Commit

Permalink
gedit: add Nord Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
novel2430 committed Dec 21, 2024
1 parent 0040cf4 commit 9367ded
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/gedit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
, texliveSmall
}:
let
gedit-nord-theme = fetchFromGitHub {
owner = "nordtheme";
repo = "gedit";
rev = "8d58a7fdd31176d32d4c152b3642b27403ca02eb";
sha256 = "sha256-IXRnGLAWouCSn+Y17juT7FvIpWuchaXR/Z1rL6KsfgE=";
};
gedit-markdown-preview = fetchFromGitHub {
owner = "maoschanz";
repo = "gedit-plugin-markdown_preview";
Expand Down Expand Up @@ -161,6 +167,11 @@ let
substituteInPlace meson.build \
--replace "if generate_vapi" "if false"
'';

postInstall = ''
# Install Nord Theme
cp ${gedit-nord-theme}/src/xml/nord.xml $out/share/gtksourceview-4/styles/nord.xml
'';
});
libs = [
glib
Expand Down Expand Up @@ -265,7 +276,7 @@ stdenv.mkDerivation rec {

meta = with lib; {
homepage = "https://gitlab.gnome.org/World/gedit/gedit";
description = "Former GNOME text editor (With Markdown Preview Plugin)";
description = "Former GNOME text editor (With Markdown Preview Plugin, Nord Theme)";
license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
mainProgram = "gedit";
Expand Down

0 comments on commit 9367ded

Please sign in to comment.