tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
equalx: init at 0.7.1-unstable-2020-02-26
Doron Behar
9 months ago
d8e98aec
ce7442e4
+71
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
eq
equalx
package.nix
+71
pkgs/by-name/eq/equalx/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitLab,
5
5
+
6
6
+
# nativeBuildInputs
7
7
+
protobuf,
8
8
+
qt5,
9
9
+
libsForQt5,
10
10
+
pkg-config,
11
11
+
installShellFiles,
12
12
+
13
13
+
# buildInputs
14
14
+
ghostscript,
15
15
+
poppler-utils,
16
16
+
exempi,
17
17
+
}:
18
18
+
19
19
+
stdenv.mkDerivation (finalAttrs: {
20
20
+
pname = "equalx";
21
21
+
version = "0.7.1-unstable-2020-02-26";
22
22
+
23
23
+
src = fetchFromGitLab {
24
24
+
owner = "q-quark";
25
25
+
repo = "equalx";
26
26
+
rev = "b7175a574379d86c43cabbdb6071f0b6d40d8e79";
27
27
+
hash = "sha256-3KIJk5bTmFjaojjHDurJjEgyvuIf0LHcSi+MrmsRPcg=";
28
28
+
};
29
29
+
postPatch = ''
30
30
+
substituteInPlace equalx.pro \
31
31
+
--replace-fail 'git describe --abbrev=0 --tags' 'echo ${finalAttrs.version}'
32
32
+
'';
33
33
+
34
34
+
nativeBuildInputs = [
35
35
+
protobuf
36
36
+
qt5.qmake
37
37
+
qt5.wrapQtAppsHook
38
38
+
pkg-config
39
39
+
installShellFiles
40
40
+
];
41
41
+
42
42
+
buildInputs = [
43
43
+
qt5.qtbase
44
44
+
qt5.qtmultimedia
45
45
+
libsForQt5.poppler
46
46
+
ghostscript
47
47
+
poppler-utils
48
48
+
exempi
49
49
+
];
50
50
+
51
51
+
installPhase = ''
52
52
+
runHook preInstall
53
53
+
54
54
+
installBin equalx
55
55
+
installManPage equalx.1
56
56
+
install -Dm644 equalx.appdata.xml $out/share/metainfo/eqaulx.appdata.xml
57
57
+
install -Dm644 resources/equalx.ico $out/share/icons/hicolor/256x256/apps/equalx.ico
58
58
+
install -Dm644 resources/equalx.desktop $out/share/applications/equalx.desktop
59
59
+
60
60
+
runHook postInstall
61
61
+
'';
62
62
+
63
63
+
meta = {
64
64
+
description = "Graphical interface to latex and a bunch of conversion programs";
65
65
+
homepage = "https://equalx.sourceforge.io/";
66
66
+
mainProgram = "equalx";
67
67
+
downloadPage = "https://gitlab.com/q-quark/equalx";
68
68
+
license = lib.licenses.gpl3Plus;
69
69
+
maintainers = with lib.maintainers; [ doronbehar ];
70
70
+
};
71
71
+
})