aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixos.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-29 19:28:20 +0900
committerOphestra <cat@gensokyo.uk>2025-03-29 19:28:20 +0900
commit72c59f92298cf6ec872bb0c93e44bea4efd72aec (patch)
treeef8b8e63d1082d97ead02c12e6c07e41947d3314 /nixos.nix
parentff3cfbb437795c7fee547b8340014071625a61a8 (diff)
nix: check share/applications in share package
This allows share directories without share/applications/ to build correctly. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'nixos.nix')
-rw-r--r--nixos.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos.nix b/nixos.nix
index ae555169..86711507 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -201,9 +201,11 @@ in
${copy "${pkg}/share/icons"}
${copy "${pkg}/share/man"}
- substituteInPlace $out/share/applications/* \
- --replace-warn '${pkg}/bin/' "" \
- --replace-warn '${pkg}/libexec/' ""
+ if test -d "$out/share/applications"; then
+ substituteInPlace $out/share/applications/* \
+ --replace-warn '${pkg}/bin/' "" \
+ --replace-warn '${pkg}/libexec/' ""
+ fi
''
)
++ acc