Logseq: Difference between revisions

From NixOS Wiki
imported>Saltrocks
m Add category
Jopejoe1 (talk | contribs)
m Move to Application Category
 
Line 27: Line 27:
Source: [https://github.com/NixOS/nixpkgs/issues/230212#issuecomment-1544083194 GitHub Issue #230212]
Source: [https://github.com/NixOS/nixpkgs/issues/230212#issuecomment-1544083194 GitHub Issue #230212]


[[Category:Software]]
[[Category: Applications]]

Latest revision as of 21:44, 3 April 2024

Issues

Fixing full-text search

Warning: Electron 20 is outdated and insecure. Output will tell you to explicitly allow insecure packages.

Add the following overlay to Home Manager or configuration.nix

nixpkgs.overlays = [
  (
    final: prev: {
      logseq = prev.logseq.overrideAttrs (oldAttrs: {
        postFixup = ''
          makeWrapper ${prev.electron_20}/bin/electron $out/bin/${oldAttrs.pname} \
            --set "LOCAL_GIT_DIRECTORY" ${prev.git} \
            --add-flags $out/share/${oldAttrs.pname}/resources/app \
            --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
            --prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [ prev.stdenv.cc.cc.lib ]}"
        '';
      });
    }
  )
];

Source: GitHub Issue #230212