2020-09-25 04:45:31 +00:00
|
|
|
{ fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gettext
|
|
|
|
, polkit
|
|
|
|
, glib
|
2022-09-11 15:47:08 +00:00
|
|
|
, gitUpdater
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "warpinator";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.2.14";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-0OmrviDti843c+nvpt7ennSrso0PD7eZOJ94JiWJT58=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
polkit # for its gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
grpcio-tools
|
|
|
|
protobuf
|
|
|
|
pygobject3
|
|
|
|
setproctitle
|
|
|
|
xapp
|
|
|
|
zeroconf
|
|
|
|
grpcio
|
|
|
|
setuptools
|
|
|
|
cryptography
|
|
|
|
pynacl
|
|
|
|
netifaces
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dbundle-zeroconf=false"
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x install-scripts/*
|
|
|
|
patchShebangs .
|
|
|
|
|
|
|
|
find . -type f -exec sed -i \
|
|
|
|
-e s,/usr/libexec/warpinator,$out/libexec/warpinator,g \
|
|
|
|
{} +
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
# these get loaded via import from bin, so don't need wrapping
|
|
|
|
chmod -x+X $out/libexec/warpinator/*.py
|
|
|
|
'';
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
ignoredVersions = "^master.*";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/linuxmint/warpinator";
|
|
|
|
description = "Share files across the LAN";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|