summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-03 01:31:32 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-03 16:37:23 +0200
commitcf1ff8be6b7c76e8934d64be0ae5b4688a1a080a (patch)
tree4bcdd6a745fe85683ea6cf69a826753c18461443 /pkgs/applications/office
parenta97aff3fccbb66f45f9aa70a488a9ed9c749dd6c (diff)
downloadnixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar.gz
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar.bz2
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar.lz
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar.xz
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.tar.zst
nixpkgs-cf1ff8be6b7c76e8934d64be0ae5b4688a1a080a.zip
trilium: remove atomEnv
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/trilium/desktop.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/applications/office/trilium/desktop.nix b/pkgs/applications/office/trilium/desktop.nix
index 949e7505b89..dd3f41df523 100644
--- a/pkgs/applications/office/trilium/desktop.nix
+++ b/pkgs/applications/office/trilium/desktop.nix
@@ -1,6 +1,7 @@
 { stdenv, lib, unzip, autoPatchelfHook
-, fetchurl, atomEnv, makeWrapper
-, makeDesktopItem, copyDesktopItems, wrapGAppsHook, libxshmfence
+, fetchurl, makeWrapper
+, alsa-lib, mesa, nss, nspr, systemd
+, makeDesktopItem, copyDesktopItems, wrapGAppsHook
 , metaCommon
 }:
 
@@ -24,6 +25,7 @@ let
 
     src = fetchurl linuxSource;
 
+    # TODO: migrate off autoPatchelfHook and use nixpkgs' electron
     nativeBuildInputs = [
       autoPatchelfHook
       makeWrapper
@@ -31,7 +33,14 @@ let
       copyDesktopItems
     ];
 
-    buildInputs = atomEnv.packages ++ [ libxshmfence ];
+    buildInputs = [
+      alsa-lib
+      mesa
+      nss
+      nspr
+      stdenv.cc.cc
+      systemd
+    ];
 
     desktopItems = [
       (makeDesktopItem {
@@ -64,8 +73,9 @@ let
     '';
 
     # LD_LIBRARY_PATH "shouldn't" be needed, remove when possible :)
+    # Error: libstdc++.so.6: cannot open shared object file: No such file or directory
     preFixup = ''
-      gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${atomEnv.libPath})
+      gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs})
     '';
 
     dontStrip = true;