tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
thonny: add desktop item
Ingo Blechschmidt
4 years ago
19de3a7c
505caf29
+16
-1
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
thonny
default.nix
+16
-1
pkgs/applications/editors/thonny/default.nix
···
1
1
-
{ lib, fetchFromGitHub, python3 }:
1
1
+
{ lib, fetchFromGitHub, python3, makeDesktopItem, copyDesktopItems }:
2
2
3
3
with python3.pkgs;
4
4
···
13
13
sha256 = "13l8blq7y6p7a235x2lfiqml1bd4ba2brm3vfvs8wasjh3fvm9g5";
14
14
};
15
15
16
16
+
nativeBuildInputs = [ copyDesktopItems ];
17
17
+
18
18
+
desktopItems = [ (makeDesktopItem {
19
19
+
name = "Thonny";
20
20
+
exec = "thonny";
21
21
+
icon = "thonny";
22
22
+
desktopName = "Thonny";
23
23
+
comment = "Python IDE for beginners";
24
24
+
categories = "Development;IDE";
25
25
+
}) ];
26
26
+
16
27
propagatedBuildInputs = with python3.pkgs; [
17
28
jedi
18
29
pyserial
···
32
43
preFixup = ''
33
44
wrapProgram "$out/bin/thonny" \
34
45
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath ${python3.pkgs.jedi})
46
46
+
'';
47
47
+
48
48
+
postInstall = ''
49
49
+
install -Dm644 ./packaging/icons/thonny-48x48.png $out/share/icons/hicolor/48x48/apps/thonny.png
35
50
'';
36
51
37
52
# Tests need a DISPLAY