summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJean-Francois Chevrette <jfchevrette@gmail.com>2022-01-12 13:33:06 -0500
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-02-09 21:13:30 -0800
commit314de8ae28ef0629b930cf2654ae1658fa0dca5a (patch)
treeeab446329601d32de2ca4ee86faca94be1727445 /pkgs
parentbd2150947460809b200d50df7bbc387b0b1c8b34 (diff)
downloadnixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar.gz
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar.bz2
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar.lz
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar.xz
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.tar.zst
nixpkgs-314de8ae28ef0629b930cf2654ae1658fa0dca5a.zip
add support for aarch64-darwin and x86_64-darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/misc/vscode-extensions/python/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/misc/vscode-extensions/python/default.nix b/pkgs/misc/vscode-extensions/python/default.nix
index beaa8d557a7..a0e64b9197b 100644
--- a/pkgs/misc/vscode-extensions/python/default.nix
+++ b/pkgs/misc/vscode-extensions/python/default.nix
@@ -72,13 +72,15 @@ in vscode-utils.buildVscodeMarketplaceExtension rec {
     icu
     curl
     openssl
+  ] ++ lib.optionals stdenv.isLinux [
     lttng-ust-2-10
     musl
   ];
 
   nativeBuildInputs = [
-    autoPatchelfHook
     python3.pkgs.wrapPython
+  ] ++ lib.optionals stdenv.isLinux [
+    autoPatchelfHook
   ];
 
   pythonPath = with python3.pkgs; [
@@ -101,6 +103,8 @@ in vscode-utils.buildVscodeMarketplaceExtension rec {
       cd pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process
       declare kept_aside="${{
         "x86_64-linux" = "attach_linux_amd64.so";
+        "aarch64-darwin" = "attach_x86_64.dylib";
+        "x86_64-darwin" = "attach_x86_64.dylib";
       }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}"
       mv "$kept_aside" "$kept_aside.hidden"
       rm *.so *.dylib *.dll *.exe *.pdb
@@ -118,7 +122,7 @@ in vscode-utils.buildVscodeMarketplaceExtension rec {
 
   meta = with lib; {
     license = licenses.mit;
-    platforms = [ "x86_64-linux" ];
+    platforms = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
     maintainers = [ maintainers.jraygauthier ];
   };
 }