nixpkgs/pkgs/desktops/cinnamon/warpinator/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.4 KiB
Nix
Raw Normal View History

2020-09-08 16:08:10 +02:00
{ fetchFromGitHub
, lib
2020-09-08 16:08:10 +02:00
, gobject-introspection
, meson
, ninja
, python3
, gtk3
, gdk-pixbuf
, wrapGAppsHook
, gettext
, polkit
, glib
}:
python3.pkgs.buildPythonApplication rec {
pname = "warpinator";
2021-11-24 10:16:31 +01:00
version = "1.2.5";
2020-09-08 16:08:10 +02:00
format = "other";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
2021-11-24 10:16:31 +01:00
hash = "sha256-pTLM4CrkBLEZS9IdM9IBSGH0WPOj1rlAgvWLOUy6MxY=";
2020-09-08 16:08:10 +02: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-11-24 10:16:31 +01:00
mesonFlags = [
"-Dbundle-zeroconf=false"
];
2020-09-08 16:08:10 +02: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
'';
meta = with lib; {
2020-09-08 16:08:10 +02:00
homepage = "https://github.com/linuxmint/warpinator";
description = "Share files across the LAN";
2020-09-08 17:05:42 +02:00
license = licenses.gpl3Plus;
2020-09-08 16:08:10 +02:00
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2020-09-08 16:08:10 +02:00
};
}