Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions pkgs/applications/networking/transporter/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5321,6 +5321,8 @@ with pkgs;

translate-shell = callPackage ../applications/misc/translate-shell { };

transporter = callPackage ../applications/networking/transporter { };

trash-cli = callPackage ../tools/misc/trash-cli { };

trickle = callPackage ../tools/networking/trickle {};
Expand Down