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
|
||||||
// {
|
// {
|
||||||
# Restore Nautilus's typeahead ability
|
nautilus = addPatches prev.gnome.nautilus [
|
||||||
# .patch file from from aur/nautilus-typeahead
|
# Restore Nautilus's typeahead ability
|
||||||
nautilus = prev.gnome.nautilus.overrideAttrs (old: {
|
# https://aur.archlinux.org/packages/nautilus-typeahead
|
||||||
patches =
|
(prev.fetchpatch {
|
||||||
(old.patches or [])
|
url = let
|
||||||
++ [
|
repo = "nautilus-typeahead";
|
||||||
(prev.fetchgit {
|
file = "nautilus-restore-typeahead.patch";
|
||||||
url = "https://aur.archlinux.org/nautilus-typeahead.git";
|
commit = "6f75fbb04f6b108324850a0956f4bbdff0b6060b";
|
||||||
rev = "26776193230b0d56f714d31d79c5e716ac413a26";
|
in "https://aur.archlinux.org/cgit/aur.git/plain/${file}?h=${repo}&id=${commit}";
|
||||||
hash = "sha256-hVWZCQwHzL4j+FcgsEhuumhBkl6d8IIbcYddh08QMJM=";
|
hash = "sha256-a40vNo2Nw068GBtjVPUz6WAYRtjD0DB2bG/N14vSTxI=";
|
||||||
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 =
|
(prev.fetchpatch {
|
||||||
(old.patches or [])
|
url = "https://raw.githubusercontent.com/Misterio77/nix-config/ac1d7bbcafb6be75e94448c7ae7a94d460e3129d/overlays/offline-mode-prism-launcher.diff";
|
||||||
++ [
|
hash = "sha256-vMcAvhD0Ms4Tvwpzs/YfORc8ki7MNMurdJJ/yswfxFM=";
|
||||||
(prev.fetchpatch {
|
})
|
||||||
url = "https://raw.githubusercontent.com/Misterio77/nix-config/ac1d7bbcafb6be75e94448c7ae7a94d460e3129d/overlays/offline-mode-prism-launcher.diff";
|
];
|
||||||
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 [])
|
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
|
||||||
++ [
|
hash = "sha256-LsCoK60FKp3d8qopGtrbCFXofxHT+kOv1e1PiLSyvsA=";
|
||||||
(prev.fetchurl {
|
})
|
||||||
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
|
];
|
||||||
sha256 = "sha256-UnNnAgXVBPjhF7ytVpGEStbJK1RQuRIci5PgGEvLp80=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue