chore: cleanup overlays as we're following nixos-unstable

This commit is contained in:
teutat3s 2023-11-20 18:43:39 +01:00
parent ed9d06629c
commit 865e05bd3e
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 19 additions and 31 deletions

View file

@ -6,8 +6,11 @@
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"1password"
"1password-cli"
"cups-brother-hl3140cw"
"facetimehd-firmware"
"slack"
"veracrypt"
"zoom"
];

View file

@ -13,34 +13,22 @@
let
unstable = import inputs.unstable {
system = prev.system;
config.allowUnfreePredicate = pkg: builtins.elem (prev.lib.getName pkg) [
"1password-cli"
"1password"
"slack"
];
#config.allowUnfreePredicate = pkg: builtins.elem (prev.lib.getName pkg) [
# "1password-cli"
# "1password"
# "slack"
#];
};
in
{
nixd = unstable.nixd;
_1password = unstable._1password;
_1password-gui = unstable._1password-gui;
thunderbird = unstable.thunderbird;
docker_24 = unstable.docker_24;
flyctl = unstable.flyctl;
slack = unstable.slack;
vimPlugins = prev.vimPlugins // {inherit (unstable.vimPlugins) nvim-lspconfig;};
#slack = unstable.slack;
#vimPlugins = prev.vimPlugins // {inherit (unstable.vimPlugins) nvim-lspconfig;};
})
(import ../pkgs)
(import ./blesh.nix)
(import ./manix.nix)
(import ./mdbook-multilang.nix inputs)
(import ./prr.nix)
(import ./rnix-lsp.nix)
(import ./neovim-plugins.nix)
(import ./signal-desktop.nix)
];

View file

@ -1,23 +1,20 @@
final: prev: {
signal-desktop = prev.signal-desktop.overrideAttrs (oldAttrs: rec {
inherit (oldAttrs) pname;
version = "6.38.0";
hash = "sha256-y2mwO7Qc01vuIeJUcAxYDD97DXOwXCd8wNZmkG4maF0=";
dir = "Signal";
src = prev.fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/s/${pname}/${pname}_${version}_amd64.deb";
inherit hash;
};
preFixup = ''
gappsWrapperArgs+=(
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [prev.stdenv.cc.cc prev.pipewire]}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-features=UseOzonePlatform --ozone-platform=wayland}}"
--suffix PATH : ${prev.lib.makeBinPath [prev.xdg-utils]}
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [ prev.stdenv.cc.cc prev.pipewire ] }"
# Currently crashes see https://github.com/NixOS/nixpkgs/issues/222043
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
--suffix PATH : ${prev.lib.makeBinPath [ prev.xdg-utils ]}
)
# Fix the desktop link
# Fix the desktop link and fix showing application icon in tray
substituteInPlace $out/share/applications/${pname}.desktop \
--replace "/opt/${dir}/${pname}" $out/bin/${pname}
--replace "/opt/${dir}/${pname}" $out/bin/${pname} \
${if pname == "signal-desktop" then "--replace \"bin/signal-desktop\" \"bin/signal-desktop --use-tray-icon\"" else ""}
autoPatchelf --no-recurse -- "$out/lib/${dir}/"
patchelf --add-needed ${prev.libpulseaudio}/lib/libpulse.so "$out/lib/${dir}/resources/app.asar.unpacked/node_modules/@signalapp/ringrtc/build/linux/libringrtc-x64.node"
'';