2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-15 21:01:43 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, pyopenssl
|
|
|
|
, pkgs
|
|
|
|
, isPy3k
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
buildPythonPackage {
|
2020-03-29 12:34:50 +02:00
|
|
|
pname = "deskcon";
|
|
|
|
version = "0.3";
|
2018-10-15 21:01:43 +02:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner= "screenfreeze";
|
|
|
|
repo = "deskcon-desktop";
|
|
|
|
rev = "267804122188fa79c37f2b21f54fe05c898610e6";
|
|
|
|
sha256 ="0i1dd85ls6n14m9q7lkympms1w3x0pqyaxvalq82s4xnjdv585j3";
|
|
|
|
};
|
|
|
|
|
2021-08-19 22:17:13 +02:00
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
2018-10-15 21:01:43 +02:00
|
|
|
|
|
|
|
pythonPath = [ pyopenssl pkgs.gtk3 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
substituteInPlace server/deskcon-server --replace "python2" "python"
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/lib/${python.libPrefix}/site-packages
|
|
|
|
cp -r "server/"* $out/lib/${python.libPrefix}/site-packages
|
|
|
|
mv $out/lib/${python.libPrefix}/site-packages/deskcon-server $out/bin/deskcon-server
|
|
|
|
|
|
|
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-15 21:01:43 +02:00
|
|
|
description = "Integrates an Android device into a desktop";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/screenfreeze/deskcon-desktop";
|
2018-10-15 21:01:43 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|