aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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