summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-17 15:39:57 +0100
committerGitHub <noreply@github.com>2023-11-17 15:39:57 +0100
commitad022b271c1bfa9e0b3290a2b028913794e94fe2 (patch)
tree05aae319c643b0884b59c5e54a892fe00b0f3587 /pkgs
parent422c386c1a31f3a219523cb4724f10d9ddc4f266 (diff)
parente680a2542810a2bc8d3406bbbe8708afa5024029 (diff)
Merge pull request #267141 from Endle/tex
texstudio: add darwin support
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/texstudio/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/editors/texstudio/default.nix b/pkgs/applications/editors/texstudio/default.nix
index b9a386684f9ed..ef0f15734a24a 100644
--- a/pkgs/applications/editors/texstudio/default.nix
+++ b/pkgs/applications/editors/texstudio/default.nix
@@ -29,6 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
     zlib
   ];
 
+  postInstall = lib.optionalString stdenv.isDarwin ''
+    mkdir -p "$out/Applications"
+    mv "$out/bin/texstudio.app" "$out/Applications"
+    rm -d "$out/bin"
+  '';
+
   meta = with lib; {
     description = "TeX and LaTeX editor";
     longDescription=''
@@ -39,7 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
     homepage = "https://texstudio.org";
     changelog = "https://github.com/texstudio-org/texstudio/blob/${version}/utilities/manual/CHANGELOG.txt";
     license = licenses.gpl2Plus;
-    platforms = platforms.linux;
+    platforms = platforms.unix;
     maintainers = with maintainers; [ ajs124 cfouche ];
   };
 })