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