2018-05-28 20:19:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, granite
|
|
|
|
, vala_0_40
|
2018-09-03 21:54:26 +00:00
|
|
|
, python3
|
2018-05-28 20:19:34 +00:00
|
|
|
, gnome3
|
|
|
|
, libxml2
|
|
|
|
, gettext
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection
|
2018-05-28 20:19:34 +00:00
|
|
|
, 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
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection # For setup hook
|
2018-05-28 20:19:34 +00:00
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala_0_40
|
2018-09-03 21:54:26 +00:00
|
|
|
python3
|
2018-05-28 20:19:34 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with gnome3; [
|
|
|
|
defaultIconTheme # If I omit this there's no icons in KDE
|
|
|
|
glib
|
|
|
|
granite
|
2018-07-22 02:03:24 +00:00
|
|
|
gsettings-desktop-schemas
|
2018-05-28 20:19:34 +00:00
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
magic-wormhole
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# The paths were hardcoded
|
|
|
|
substituteInPlace ./src/WormholeInterface.vala \
|
|
|
|
--replace /bin/wormhole ${magic-wormhole}/bin/wormhole
|
|
|
|
'';
|
2018-07-22 02:03:24 +00:00
|
|
|
|
2018-05-28 20:19:34 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|