diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-29 19:28:20 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-29 19:28:20 +0900 |
| commit | 72c59f92298cf6ec872bb0c93e44bea4efd72aec (patch) | |
| tree | ef8b8e63d1082d97ead02c12e6c07e41947d3314 /nixos.nix | |
| parent | ff3cfbb437795c7fee547b8340014071625a61a8 (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.nix | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
