tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
trilium: remove atomEnv
Sandro Jäckel
2 years ago
cf1ff8be
a97aff3f
+14
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
office
trilium
desktop.nix
+14
-4
pkgs/applications/office/trilium/desktop.nix
···
1
1
{ stdenv, lib, unzip, autoPatchelfHook
2
2
-
, fetchurl, atomEnv, makeWrapper
3
3
-
, makeDesktopItem, copyDesktopItems, wrapGAppsHook, libxshmfence
2
2
+
, fetchurl, makeWrapper
3
3
+
, alsa-lib, mesa, nss, nspr, systemd
4
4
+
, makeDesktopItem, copyDesktopItems, wrapGAppsHook
4
5
, metaCommon
5
6
}:
6
7
···
24
25
25
26
src = fetchurl linuxSource;
26
27
28
28
+
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
27
29
nativeBuildInputs = [
28
30
autoPatchelfHook
29
31
makeWrapper
···
31
33
copyDesktopItems
32
34
];
33
35
34
34
-
buildInputs = atomEnv.packages ++ [ libxshmfence ];
36
36
+
buildInputs = [
37
37
+
alsa-lib
38
38
+
mesa
39
39
+
nss
40
40
+
nspr
41
41
+
stdenv.cc.cc
42
42
+
systemd
43
43
+
];
35
44
36
45
desktopItems = [
37
46
(makeDesktopItem {
···
64
73
'';
65
74
66
75
# LD_LIBRARY_PATH "shouldn't" be needed, remove when possible :)
76
76
+
# Error: libstdc++.so.6: cannot open shared object file: No such file or directory
67
77
preFixup = ''
68
68
-
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${atomEnv.libPath})
78
78
+
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs})
69
79
'';
70
80
71
81
dontStrip = true;