From 2c933ce2ac32c1fcd5c888cdcdb45f9ac555ba1b Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Mon, 28 May 2018 20:19:34 +0000 Subject: Transporter: init at 1.3.3 (#41127) * Transporter: init at 1.3.3 * Transporter: clarify description --- .../networking/transporter/default.nix | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 pkgs/applications/networking/transporter/default.nix (limited to 'pkgs/applications/networking/transporter') diff --git a/pkgs/applications/networking/transporter/default.nix b/pkgs/applications/networking/transporter/default.nix new file mode 100644 index 000000000000..141c40f3b84e --- /dev/null +++ b/pkgs/applications/networking/transporter/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, fetchFromGitHub +, meson +, ninja +, pkgconfig +, granite +, vala_0_40 +, gnome3 +, libxml2 +, gettext +, gobjectIntrospection +, appstream-glib +, desktop-file-utils +, magic-wormhole +, wrapGAppsHook }: + +let + pname = "Transporter"; + version = "1.3.3"; +in stdenv.mkDerivation rec { + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "bleakgrey"; + repo = pname; + rev = version; + sha256 = "19zb2yqmyyhk5vgh6p278b76shlq0r8ykk1ks8zzr187nr5lf5k1"; + }; + + nativeBuildInputs = [ + appstream-glib + desktop-file-utils + gettext + gobjectIntrospection # For setup hook + libxml2 + meson + ninja + pkgconfig + vala_0_40 + wrapGAppsHook + ]; + + buildInputs = with gnome3; [ + defaultIconTheme # If I omit this there's no icons in KDE + glib + granite + gsettings_desktop_schemas + gtk3 + libgee + magic-wormhole + ]; + + prePatch = '' + # The paths were hardcoded + substituteInPlace ./src/WormholeInterface.vala \ + --replace /bin/wormhole ${magic-wormhole}/bin/wormhole + ''; + + postPatch = '' + chmod +x ./meson/post_install.py + patchShebangs ./meson/post_install.py + ''; + + meta = with stdenv.lib; { + description = "Simple magic-wormhole client"; + homepage = https://github.com/bleakgrey/Transporter; + license = licenses.gpl3; + maintainers = with maintainers; [ worldofpeace ]; + platforms = platforms.linux; + }; +} -- cgit 1.4.1