mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
transgui: patch to circumvent v3 rpc issue
This commit is contained in:
parent
750a5146f9
commit
c0de15d581
@ -1,30 +1,38 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, pkg-config, makeDesktopItem, unzip, fpc, lazarus,
|
{ lib, stdenv, fetchFromGitHub, pkg-config, makeDesktopItem, fetchpatch, unzip
|
||||||
libX11, glib, gtk2, gdk-pixbuf, pango, atk, cairo, openssl }:
|
, fpc, lazarus, libX11, glib, gtk2, gdk-pixbuf, pango, atk, cairo, openssl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "transgui";
|
pname = "transgui";
|
||||||
version = "5.18.0";
|
version = "unstable-2022-02-02";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "transmission-remote-gui";
|
owner = "transmission-remote-gui";
|
||||||
repo = "transgui";
|
repo = "transgui";
|
||||||
rev = "v${version}";
|
rev = "0e2c2a07c1b21b1704c0a4945a111a8aa1050a1a";
|
||||||
sha256 = "1dyx778756zhvz5sxgdvy49p2c0x44w4nmcfd90wqrmgfknncnf5";
|
sha256 = "1x9wzii3q9zanpik4xc99jqsfrqch8vjmlx12jrvczxcfy51b1ba";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# TDDO: remove when transgui updates for transmission-daemon v3 rpc protocol
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/transmission-remote-gui/transgui/commit/9275c3fb877dd753a1940d1b900630cdc09a0cc2.patch";
|
||||||
|
sha256 = "0w2x7gcxp5kqczdz7ckfqhdz9hhkm62k8gcws54d6km7x9vc1023";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config unzip ];
|
nativeBuildInputs = [ pkg-config unzip ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fpc lazarus stdenv.cc
|
fpc lazarus stdenv.cc libX11 glib gtk2 gdk-pixbuf
|
||||||
libX11 glib gtk2 gdk-pixbuf pango atk cairo openssl
|
pango atk cairo openssl
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = "
|
NIX_LDFLAGS = ''
|
||||||
-L${stdenv.cc.cc.lib}/lib
|
-L${stdenv.cc.cc.lib}/lib -lX11 -lglib-2.0 -lgtk-x11-2.0
|
||||||
-lX11 -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0
|
-lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo
|
||||||
-lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo -lc -lcrypto
|
-lc -lcrypto
|
||||||
";
|
'';
|
||||||
|
|
||||||
prePatch = ''
|
postPatch = ''
|
||||||
substituteInPlace restranslator.pas --replace /usr/ $out/
|
substituteInPlace restranslator.pas --replace /usr/ $out/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -33,23 +41,19 @@ stdenv.mkDerivation rec {
|
|||||||
lazbuild -B transgui.lpr --lazarusdir=${lazarus}/share/lazarus
|
lazbuild -B transgui.lpr --lazarusdir=${lazarus}/share/lazarus
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [ "FPC=fpc" "PP=fpc" "INSTALL_PREFIX=$(out)" ];
|
||||||
"FPC=fpc"
|
|
||||||
"PP=fpc"
|
|
||||||
"INSTALL_PREFIX=$(out)"
|
|
||||||
];
|
|
||||||
|
|
||||||
LCL_PLATFORM = "gtk2";
|
LCL_PLATFORM = "gtk2";
|
||||||
|
|
||||||
desktopItem = makeDesktopItem rec {
|
desktopItem = makeDesktopItem {
|
||||||
name = "transgui";
|
name = pname;
|
||||||
exec = name + " %U";
|
exec = "${pname} %U";
|
||||||
icon = name;
|
icon = pname;
|
||||||
type = "Application";
|
type = "Application";
|
||||||
comment = meta.description;
|
comment = meta.description;
|
||||||
desktopName = "Transmission Remote GUI";
|
desktopName = "Transmission Remote GUI";
|
||||||
genericName = "BitTorrent Client";
|
genericName = "BitTorrent Client";
|
||||||
categories = [ "Application" "Network" "FileTransfer" "P2P" "GTK" ];
|
categories = [ "Network" "FileTransfer" "P2P" "GTK" ];
|
||||||
startupNotify = true;
|
startupNotify = true;
|
||||||
mimeTypes = [ "application/x-bittorrent" "x-scheme-handler/magnet" ];
|
mimeTypes = [ "application/x-bittorrent" "x-scheme-handler/magnet" ];
|
||||||
};
|
};
|
||||||
@ -64,10 +68,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A cross platform front-end for the Transmission Bit-Torrent client";
|
description = "A cross platform front-end for the Transmission BitTorrent client";
|
||||||
homepage = "https://sourceforge.net/p/transgui";
|
homepage = "https://sourceforge.net/p/transgui";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = with lib.maintainers; [ ramkromberg ];
|
maintainers = with lib.maintainers; [ ramkromberg ];
|
||||||
platforms = lib.platforms.linux;
|
mainProgram = "transgui";
|
||||||
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user