diff --git a/nixos.nix b/nixos.nix index ae55516..8671150 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