tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
leo-editor: 5.1 -> 5.3
Ram Kromberg
9 years ago
d6d71649
32ce20c8
+51
-14
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
leo-editor
default.nix
+51
-14
pkgs/applications/editors/leo-editor/default.nix
···
1
1
-
{ stdenv, pythonPackages, fetchgit }:
1
1
+
{ stdenv, python3Packages, fetchFromGitHub, makeWrapper, makeDesktopItem }:
2
2
3
3
-
pythonPackages.buildPythonApplication rec {
3
3
+
stdenv.mkDerivation rec {
4
4
name = "leo-editor-${version}";
5
5
-
namePrefix = "";
6
6
-
version = "5.1";
5
5
+
version = "5.3";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "leo-editor";
9
9
+
repo = "leo-editor";
10
10
+
rev = version;
11
11
+
sha256 = "0whbay8ilabzpxdjaxv447y6bqbsilx161fv7wa15v3qqm2kapsp";
12
12
+
};
13
13
+
14
14
+
dontBuild = true;
15
15
+
16
16
+
buildInputs = [ makeWrapper python3Packages.python ];
17
17
+
propagatedBuildInputs = with python3Packages; [ pyqt5 ];
7
18
8
8
-
src = fetchgit {
9
9
-
url = "https://github.com/leo-editor/leo-editor";
10
10
-
rev = "refs/tags/Leo-${version}-final";
11
11
-
sha256 = "0km5mvzfpfbxxhcjr4if24qhgk2c7dsvmfinz0zrbfriip848vcp";
19
19
+
desktopItem = makeDesktopItem rec {
20
20
+
name = "leo-editor";
21
21
+
exec = "leo %U";
22
22
+
icon = "leoapp32";
23
23
+
type = "Application";
24
24
+
comment = meta.description;
25
25
+
desktopName = "Leo";
26
26
+
genericName = "Text Editor";
27
27
+
categories = stdenv.lib.concatStringsSep ";" [
28
28
+
"Application" "Development" "IDE" "QT"
29
29
+
];
30
30
+
startupNotify = "false";
31
31
+
mimeType = stdenv.lib.concatStringsSep ";" [
32
32
+
"text/plain" "text/asp" "text/x-c" "text/x-script.elisp" "text/x-fortran"
33
33
+
"text/html" "application/inf" "text/x-java-source" "application/x-javascript"
34
34
+
"application/javascript" "text/ecmascript" "application/x-ksh" "text/x-script.ksh"
35
35
+
"application/x-tex" "text/x-script.rexx" "text/x-pascal" "text/x-script.perl"
36
36
+
"application/postscript" "text/x-script.scheme" "text/x-script.guile" "text/sgml"
37
37
+
"text/x-sgml" "application/x-bsh" "application/x-sh" "application/x-shar"
38
38
+
"text/x-script.sh" "application/x-tcl" "text/x-script.tcl" "application/x-texinfo"
39
39
+
"application/xml" "text/xml" "text/x-asm"
40
40
+
];
12
41
};
13
42
14
14
-
propagatedBuildInputs = with pythonPackages; [ pyqt4 sqlite3 ];
43
43
+
installPhase = ''
44
44
+
mkdir -p "$out/share/icons/hicolor/32x32/apps"
45
45
+
cp leo/Icons/leoapp32.png "$out/share/icons/hicolor/32x32/apps"
15
46
47
47
+
mkdir -p "$out/share/applications"
48
48
+
cp $desktopItem/share/applications/* $out/share/applications
16
49
17
17
-
patchPhase = ''
18
18
-
rm setup.cfg
50
50
+
mkdir -p $out/share/leo-editor
51
51
+
mv * $out/share/leo-editor
52
52
+
53
53
+
makeWrapper ${python3Packages.python}/bin/python3.5m $out/bin/leo \
54
54
+
--set PYTHONPATH "$PYTHONPATH:$out/share/leo-editor" \
55
55
+
--add-flags "-O $out/share/leo-editor/launchLeo.py"
19
56
'';
20
57
21
21
-
meta = {
58
58
+
meta = with stdenv.lib; {
22
59
homepage = "http://leoeditor.com";
23
60
description = "A powerful folding editor";
24
61
longDescription = "Leo is a PIM, IDE and outliner that accelerates the work flow of programmers, authors and web designers.";
25
25
-
license = stdenv.lib.licenses.mit;
26
26
-
maintainers = with stdenv.lib.maintainers; [ leonardoce ];
62
62
+
license = with licenses; [ mit ];
63
63
+
maintainers = with maintainers; [ leonardoce ramkromberg ];
27
64
};
28
65
}