tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
transgui: patch to circumvent v3 rpc issue
Ram Kromberg
3 years ago
c0de15d5
750a5146
+30
-25
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
p2p
transgui
default.nix
+30
-25
pkgs/applications/networking/p2p/transgui/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, pkg-config, makeDesktopItem, unzip, fpc, lazarus,
2
2
-
libX11, glib, gtk2, gdk-pixbuf, pango, atk, cairo, openssl }:
1
1
+
{ lib, stdenv, fetchFromGitHub, pkg-config, makeDesktopItem, fetchpatch, unzip
2
2
+
, fpc, lazarus, libX11, glib, gtk2, gdk-pixbuf, pango, atk, cairo, openssl }:
3
3
4
4
stdenv.mkDerivation rec {
5
5
pname = "transgui";
6
6
-
version = "5.18.0";
6
6
+
version = "unstable-2022-02-02";
7
7
8
8
src = fetchFromGitHub {
9
9
owner = "transmission-remote-gui";
10
10
repo = "transgui";
11
11
-
rev = "v${version}";
12
12
-
sha256 = "1dyx778756zhvz5sxgdvy49p2c0x44w4nmcfd90wqrmgfknncnf5";
11
11
+
rev = "0e2c2a07c1b21b1704c0a4945a111a8aa1050a1a";
12
12
+
sha256 = "1x9wzii3q9zanpik4xc99jqsfrqch8vjmlx12jrvczxcfy51b1ba";
13
13
};
14
14
15
15
+
patches = [
16
16
+
# TDDO: remove when transgui updates for transmission-daemon v3 rpc protocol
17
17
+
(fetchpatch {
18
18
+
url = "https://github.com/transmission-remote-gui/transgui/commit/9275c3fb877dd753a1940d1b900630cdc09a0cc2.patch";
19
19
+
sha256 = "0w2x7gcxp5kqczdz7ckfqhdz9hhkm62k8gcws54d6km7x9vc1023";
20
20
+
})
21
21
+
];
22
22
+
15
23
nativeBuildInputs = [ pkg-config unzip ];
16
24
buildInputs = [
17
17
-
fpc lazarus stdenv.cc
18
18
-
libX11 glib gtk2 gdk-pixbuf pango atk cairo openssl
25
25
+
fpc lazarus stdenv.cc libX11 glib gtk2 gdk-pixbuf
26
26
+
pango atk cairo openssl
19
27
];
20
28
21
21
-
NIX_LDFLAGS = "
22
22
-
-L${stdenv.cc.cc.lib}/lib
23
23
-
-lX11 -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0
24
24
-
-lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo -lc -lcrypto
25
25
-
";
29
29
+
NIX_LDFLAGS = ''
30
30
+
-L${stdenv.cc.cc.lib}/lib -lX11 -lglib-2.0 -lgtk-x11-2.0
31
31
+
-lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo
32
32
+
-lc -lcrypto
33
33
+
'';
26
34
27
27
-
prePatch = ''
35
35
+
postPatch = ''
28
36
substituteInPlace restranslator.pas --replace /usr/ $out/
29
37
'';
30
38
···
33
41
lazbuild -B transgui.lpr --lazarusdir=${lazarus}/share/lazarus
34
42
'';
35
43
36
36
-
makeFlags = [
37
37
-
"FPC=fpc"
38
38
-
"PP=fpc"
39
39
-
"INSTALL_PREFIX=$(out)"
40
40
-
];
44
44
+
makeFlags = [ "FPC=fpc" "PP=fpc" "INSTALL_PREFIX=$(out)" ];
41
45
42
46
LCL_PLATFORM = "gtk2";
43
47
44
44
-
desktopItem = makeDesktopItem rec {
45
45
-
name = "transgui";
46
46
-
exec = name + " %U";
47
47
-
icon = name;
48
48
+
desktopItem = makeDesktopItem {
49
49
+
name = pname;
50
50
+
exec = "${pname} %U";
51
51
+
icon = pname;
48
52
type = "Application";
49
53
comment = meta.description;
50
54
desktopName = "Transmission Remote GUI";
51
55
genericName = "BitTorrent Client";
52
52
-
categories = [ "Application" "Network" "FileTransfer" "P2P" "GTK" ];
56
56
+
categories = [ "Network" "FileTransfer" "P2P" "GTK" ];
53
57
startupNotify = true;
54
58
mimeTypes = [ "application/x-bittorrent" "x-scheme-handler/magnet" ];
55
59
};
···
64
68
'';
65
69
66
70
meta = {
67
67
-
description = "A cross platform front-end for the Transmission Bit-Torrent client";
71
71
+
description = "A cross platform front-end for the Transmission BitTorrent client";
68
72
homepage = "https://sourceforge.net/p/transgui";
69
73
license = lib.licenses.gpl2Plus;
70
74
maintainers = with lib.maintainers; [ ramkromberg ];
71
71
-
platforms = lib.platforms.linux;
75
75
+
mainProgram = "transgui";
76
76
+
platforms = [ "x86_64-linux" "x86_64-darwin" ];
72
77
};
73
78
}