diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-21 16:36:50 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-22 00:18:58 +0200 |
commit | 84145db97d967dee9435f08d35c22232702f7147 (patch) | |
tree | 703d196e4fae4d179bc3d295c192b1d0eca123ac /overlays | |
parent | Overlays: Base: Add database arg patch to comma (diff) | |
download | nixos-config-84145db97d967dee9435f08d35c22232702f7147.tar.gz nixos-config-84145db97d967dee9435f08d35c22232702f7147.tar.bz2 nixos-config-84145db97d967dee9435f08d35c22232702f7147.zip |
Misc: Move patches to their respective overlay's folder
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/base/default.nix | 4 | ||||
-rw-r--r-- | overlays/base/patches/dmenu_height.patch | 13 | ||||
-rw-r--r-- | overlays/base/patches/kcc.patch | 30 |
3 files changed, 45 insertions, 2 deletions
diff --git a/overlays/base/default.nix b/overlays/base/default.nix index e313db4..47523b4 100644 --- a/overlays/base/default.nix +++ b/overlays/base/default.nix @@ -17,7 +17,7 @@ final: prev: sha256 = "sha256-MyNMxdaWtgjClZGIHUtYwwx51u5NII5Ce4BnOnUojo8="; }; - patches = [ ../../patches/dmenu_height.patch ]; + patches = [ ./patches/dmenu_height.patch ]; }); st = prev.st.overrideAttrs (old: { @@ -55,7 +55,7 @@ final: prev: sha256 = "sha256-vH3Cz7nL+sStogcCRLcN30Iap25f5hylXHECX52G4f0="; }; patches = [ - ../../patches/kcc.patch + ./patches/kcc.patch (prev.fetchpatch { url = "https://github.com/Baitinq/kcc/commit/73cd0dd107901bebe7d72e2b86ecf8b830a19758.diff"; diff --git a/overlays/base/patches/dmenu_height.patch b/overlays/base/patches/dmenu_height.patch new file mode 100644 index 0000000..acda047 --- /dev/null +++ b/overlays/base/patches/dmenu_height.patch @@ -0,0 +1,13 @@ +diff --git a/dmenu.c b/dmenu.c +index 0f7d5dd..50012fa 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -867,7 +867,7 @@ setup(void) + dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False); + + /* calculate menu geometry */ +- bh = drw->fonts->h + 2; ++ bh = drw->fonts->h + 4; + bh = MAX(bh,lineheight); /* make a menu line AT LEAST 'lineheight' tall */ + lines = MAX(lines, 0); + mh = (lines + 1) * bh; diff --git a/overlays/base/patches/kcc.patch b/overlays/base/patches/kcc.patch new file mode 100644 index 0000000..73c754c --- /dev/null +++ b/overlays/base/patches/kcc.patch @@ -0,0 +1,30 @@ +diff --git a/kindlecomicconverter/startup.py b/kindlecomicconverter/startup.py +index c92579d..0217a76 100644 +--- a/kindlecomicconverter/startup.py ++++ b/kindlecomicconverter/startup.py +@@ -25,7 +25,7 @@ from .shared import dependencyCheck + + + def start(): +- dependencyCheck(3) ++ #dependencyCheck(3) + from . import KCC_gui + os.environ['QT_AUTO_SCREEN_SCALE_FACTOR'] = "1" + KCCAplication = KCC_gui.QApplicationMessaging(sys.argv) +@@ -43,14 +43,14 @@ def start(): + + + def startC2E(): +- dependencyCheck(2) ++ #dependencyCheck(2) + from .comic2ebook import main + print('comic2ebook v' + __version__ + ' - Written by Ciro Mattia Gonano and Pawel Jastrzebski.') + sys.exit(main(sys.argv[1:])) + + + def startC2P(): +- dependencyCheck(1) ++ #dependencyCheck(1) + from .comic2panel import main + print('comic2panel v' + __version__ + ' - Written by Ciro Mattia Gonano and Pawel Jastrzebski.') + sys.exit(main(sys.argv[1:])) |