21 stdenv.mkDerivation rec {
23 version = "5.18.0-unstable-2024-10-03";
25 src = fetchFromGitHub {
26 owner = "transmission-remote-gui";
28 rev = "8854357ece266e749e8981a93c8002465a93d8f2";
29 hash = "sha256-8ycivjjPeXBdPbqNNlO2hcre6T9sFhqg6vUfCREtd8k=";
51 -L${lib.getLib stdenv.cc.cc}/lib -lX11 -lglib-2.0 -lgtk-x11-2.0
52 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo
57 substituteInPlace restranslator.pas --replace /usr/ $out/
61 FPCDIR=${fpc}/lib/fpc/${fpc.version} fpcmake -w
62 lazbuild -B transgui.lpr --lazarusdir=${lazarus}/share/lazarus
68 "INSTALL_PREFIX=$(out)"
71 LCL_PLATFORM = "gtk2";
73 desktopItem = makeDesktopItem {
78 comment = meta.description;
79 desktopName = "Transmission Remote GUI";
80 genericName = "BitTorrent Client";
89 "application/x-bittorrent"
90 "x-scheme-handler/magnet"
95 mkdir -p "$out/share/applications"
96 cp $desktopItem/share/applications/* $out/share/applications
97 mkdir -p "$out/share/icons/hicolor/48x48/apps"
98 cp transgui.png "$out/share/icons/hicolor/48x48/apps"
99 mkdir -p "$out/share/transgui"
100 cp -r "./lang" "$out/share/transgui"
103 passthru.updateScript = unstableGitUpdater {
108 description = "A cross platform front-end for the Transmission BitTorrent client";
109 homepage = "https://sourceforge.net/p/transgui";
110 license = lib.licenses.gpl2Plus;
111 maintainers = with lib.maintainers; [ ramkromberg ];
112 mainProgram = "transgui";