nixos: overlays: refactor
This commit is contained in:
parent
605554ccce
commit
5746458b7a
5 changed files with 39 additions and 67 deletions
|
@ -1,7 +1,12 @@
|
||||||
_: {
|
_: let
|
||||||
|
addPatches = pkg: patches:
|
||||||
|
pkg.overrideAttrs (old: {
|
||||||
|
patches = (old.patches or []) ++ patches;
|
||||||
|
});
|
||||||
|
in {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./nautilus.nix)
|
(import ./nautilus.nix {inherit addPatches;})
|
||||||
(import ./prismlauncher.nix)
|
(import ./prismlauncher.nix {inherit addPatches;})
|
||||||
(import ./sway.nix)
|
(import ./sway.nix {inherit addPatches;})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
_final: prev: {
|
|
||||||
firefox-unwrapped = prev.firefox-unwrapped.overrideAttrs (old: {
|
|
||||||
# Firefox but with .mozilla moved to .config/mozilla
|
|
||||||
# .patch file from aur/firefox-xdg
|
|
||||||
# dont actually use this, it take ages to build... =.=
|
|
||||||
patches =
|
|
||||||
(old.patches or [])
|
|
||||||
++ [
|
|
||||||
(prev.fetchgit {
|
|
||||||
url = "https://aur.archlinux.org/firefox-xdg.git";
|
|
||||||
rev = "ab291ab81140867dea4c08e4e1e4e3da0c73e4a6";
|
|
||||||
hash = "sha256-6VgCt028qs/Y5kl20qLUYwFI63pItsHPbLimOFIdsyo=";
|
|
||||||
sparseCheckout = [
|
|
||||||
"firefox-xdg-support.diff"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
+ "/firefox-xdg-support.diff")
|
|
||||||
];
|
|
||||||
});
|
|
||||||
}
|
|
|
@ -1,23 +1,18 @@
|
||||||
_final: prev: {
|
{addPatches, ...}: _final: prev: {
|
||||||
gnome =
|
gnome =
|
||||||
prev.gnome
|
prev.gnome
|
||||||
// {
|
// {
|
||||||
|
nautilus = addPatches prev.gnome.nautilus [
|
||||||
# Restore Nautilus's typeahead ability
|
# Restore Nautilus's typeahead ability
|
||||||
# .patch file from from aur/nautilus-typeahead
|
# https://aur.archlinux.org/packages/nautilus-typeahead
|
||||||
nautilus = prev.gnome.nautilus.overrideAttrs (old: {
|
(prev.fetchpatch {
|
||||||
patches =
|
url = let
|
||||||
(old.patches or [])
|
repo = "nautilus-typeahead";
|
||||||
++ [
|
file = "nautilus-restore-typeahead.patch";
|
||||||
(prev.fetchgit {
|
commit = "6f75fbb04f6b108324850a0956f4bbdff0b6060b";
|
||||||
url = "https://aur.archlinux.org/nautilus-typeahead.git";
|
in "https://aur.archlinux.org/cgit/aur.git/plain/${file}?h=${repo}&id=${commit}";
|
||||||
rev = "26776193230b0d56f714d31d79c5e716ac413a26";
|
hash = "sha256-a40vNo2Nw068GBtjVPUz6WAYRtjD0DB2bG/N14vSTxI=";
|
||||||
hash = "sha256-hVWZCQwHzL4j+FcgsEhuumhBkl6d8IIbcYddh08QMJM=";
|
})
|
||||||
sparseCheckout = [
|
|
||||||
"nautilus-restore-typeahead.patch"
|
|
||||||
];
|
];
|
||||||
}
|
|
||||||
+ "/nautilus-restore-typeahead.patch")
|
|
||||||
];
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
_final: prev: {
|
{addPatches, ...}: _final: prev: {
|
||||||
prismlauncher = prev.prismlauncher.overrideAttrs (old: {
|
prismlauncher = addPatches prev.prismlauncher [
|
||||||
# Offline mode for Prism Launcher
|
# Offline mode for Prism Launcher
|
||||||
# .patch file from some Misterio77's nix-config repo
|
# https://github.com/Misterio77/nix-config/blob/main/overlays/offline-mode-prism-launcher.diff
|
||||||
patches =
|
|
||||||
(old.patches or [])
|
|
||||||
++ [
|
|
||||||
(prev.fetchpatch {
|
(prev.fetchpatch {
|
||||||
url = "https://raw.githubusercontent.com/Misterio77/nix-config/ac1d7bbcafb6be75e94448c7ae7a94d460e3129d/overlays/offline-mode-prism-launcher.diff";
|
url = "https://raw.githubusercontent.com/Misterio77/nix-config/ac1d7bbcafb6be75e94448c7ae7a94d460e3129d/overlays/offline-mode-prism-launcher.diff";
|
||||||
hash = "sha256-vMcAvhD0Ms4Tvwpzs/YfORc8ki7MNMurdJJ/yswfxFM=";
|
hash = "sha256-vMcAvhD0Ms4Tvwpzs/YfORc8ki7MNMurdJJ/yswfxFM=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
_final: prev: {
|
{addPatches, ...}: _final: prev: {
|
||||||
sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
|
sway-unwrapped = addPatches prev.sway-unwrapped [
|
||||||
# Add input panel to sway
|
# text_input: Implement input-method popups
|
||||||
# .patch file from https://github.com/swaywm/sway/pull/7226
|
# https://github.com/swaywm/sway/pull/7226
|
||||||
patches =
|
(prev.fetchpatch {
|
||||||
(old.patches or [])
|
|
||||||
++ [
|
|
||||||
(prev.fetchurl {
|
|
||||||
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
|
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
|
||||||
sha256 = "sha256-UnNnAgXVBPjhF7ytVpGEStbJK1RQuRIci5PgGEvLp80=";
|
hash = "sha256-LsCoK60FKp3d8qopGtrbCFXofxHT+kOv1e1PiLSyvsA=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue