3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/cinnamon/warpinator/default.nix
Thomas Gerbet 85681df552 cinnamon.warpinator: 1.2.14 -> 1.2.15
Fixes CVE-2022-42725.

c32eafb0d1
2022-11-22 19:14:47 +01:00

88 lines
1.5 KiB
Nix

{ fetchFromGitHub
, lib
, gobject-introspection
, meson
, ninja
, python3
, gtk3
, gdk-pixbuf
, wrapGAppsHook
, gettext
, polkit
, glib
, gitUpdater
}:
python3.pkgs.buildPythonApplication rec {
pname = "warpinator";
version = "1.2.15";
format = "other";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-WLeJTSf8906CjvJvBWnmFRVV1ngOuIK0V/3qZ82Bx7s=";
};
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
];
mesonFlags = [
"-Dbundle-zeroconf=false"
];
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
'';
passthru.updateScript = gitUpdater {
ignoredVersions = "^master.*";
};
meta = with lib; {
homepage = "https://github.com/linuxmint/warpinator";
description = "Share files across the LAN";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}