Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 42 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, pyopenssl 4, pkgs 5, isPy3k 6, python 7}: 8 9buildPythonPackage { 10 pname = "deskcon"; 11 version = "0.3"; 12 disabled = isPy3k; 13 14 src = pkgs.fetchFromGitHub { 15 owner= "screenfreeze"; 16 repo = "deskcon-desktop"; 17 rev = "267804122188fa79c37f2b21f54fe05c898610e6"; 18 sha256 ="0i1dd85ls6n14m9q7lkympms1w3x0pqyaxvalq82s4xnjdv585j3"; 19 }; 20 21 phases = [ "unpackPhase" "installPhase" ]; 22 23 pythonPath = [ pyopenssl pkgs.gtk3 ]; 24 25 installPhase = '' 26 substituteInPlace server/deskcon-server --replace "python2" "python" 27 28 mkdir -p $out/bin 29 mkdir -p $out/lib/${python.libPrefix}/site-packages 30 cp -r "server/"* $out/lib/${python.libPrefix}/site-packages 31 mv $out/lib/${python.libPrefix}/site-packages/deskcon-server $out/bin/deskcon-server 32 33 wrapPythonProgramsIn $out/bin "$out $pythonPath" 34 ''; 35 36 meta = with lib; { 37 description = "Integrates an Android device into a desktop"; 38 homepage = "https://github.com/screenfreeze/deskcon-desktop"; 39 license = licenses.gpl3; 40 }; 41 42}