mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 06:34:13 +00:00
thonny: add darwin bundle
This commit is contained in:
parent
02aba12b71
commit
61fd4d4a3d
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, python3, makeDesktopItem, copyDesktopItems }:
|
||||
{ lib, stdenv, fetchFromGitHub, python3, makeDesktopItem, copyDesktopItems, desktopToDarwinBundle }:
|
||||
|
||||
with python3.pkgs;
|
||||
|
||||
@ -13,7 +13,8 @@ buildPythonApplication rec {
|
||||
hash = "sha256-/ms2RESnV3bsJpK1zYYLHNUu1FtA6PntaseTbKMfUMc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems ];
|
||||
nativeBuildInputs = [ copyDesktopItems ]
|
||||
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
||||
|
||||
desktopItems = [ (makeDesktopItem {
|
||||
name = "Thonny";
|
||||
@ -24,7 +25,7 @@ buildPythonApplication rec {
|
||||
categories = [ "Development" "IDE" ];
|
||||
}) ];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = with python3.pkgs; ([
|
||||
jedi
|
||||
pyserial
|
||||
tkinter
|
||||
@ -34,8 +35,9 @@ buildPythonApplication rec {
|
||||
pyperclip
|
||||
asttokens
|
||||
send2trash
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
dbus-next
|
||||
];
|
||||
]);
|
||||
|
||||
preInstall = ''
|
||||
export HOME=$(mktemp -d)
|
||||
|
Loading…
Reference in New Issue
Block a user