2018-05-28 22:19:34 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
2018-08-20 22:31:18 +02:00
|
|
|
, gtk3
|
2018-09-03 23:54:26 +02:00
|
|
|
, python3
|
2018-08-20 22:31:18 +02:00
|
|
|
, pantheon
|
2018-05-28 22:19:34 +02:00
|
|
|
, gnome3
|
|
|
|
, libxml2
|
|
|
|
, gettext
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
2018-05-28 22:19:34 +02:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, magic-wormhole
|
|
|
|
, wrapGAppsHook }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "Transporter";
|
|
|
|
version = "1.3.3";
|
2019-08-13 23:52:01 +02:00
|
|
|
in stdenv.mkDerivation {
|
2018-05-28 22:19:34 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bleakgrey";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "19zb2yqmyyhk5vgh6p278b76shlq0r8ykk1ks8zzr187nr5lf5k1";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2018-08-20 22:31:18 +02:00
|
|
|
pantheon.vala
|
2018-05-28 22:19:34 +02:00
|
|
|
gettext
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection # For setup hook
|
2018-05-28 22:19:34 +02:00
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2018-09-03 23:54:26 +02:00
|
|
|
python3
|
2018-05-28 22:19:34 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2018-08-20 22:31:18 +02:00
|
|
|
buildInputs = [
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
gnome3.libgee
|
|
|
|
pantheon.granite
|
2018-05-28 22:19:34 +02:00
|
|
|
gtk3
|
|
|
|
magic-wormhole
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# The paths were hardcoded
|
|
|
|
substituteInPlace ./src/WormholeInterface.vala \
|
|
|
|
--replace /bin/wormhole ${magic-wormhole}/bin/wormhole
|
|
|
|
'';
|
2018-07-22 04:03:24 +02:00
|
|
|
|
2018-05-28 22:19:34 +02:00
|
|
|
postPatch = ''
|
2018-08-20 22:31:18 +02:00
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
2018-05-28 22:19:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|