Created
November 9, 2018 15:59
-
-
Save avnik/ce4853696ef3db9368e2158bf418e464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ }: | |
with import <nixpkgs> {}; | |
let | |
tdbus = with python27Packages; buildPythonPackage rec { | |
name = "tdbus-${version}"; | |
version = "0.10"; | |
src = fetchFromGitHub { | |
owner = "hmvp"; | |
repo = "python-tdbus"; | |
rev = "v${version}"; | |
sha256 = "0z2lxarh06vsfmv9j2pggwpyf2g1614122c29jhhvhzsd27rkrwx"; | |
}; | |
buildInputs = [ dbus ]; | |
nativeBuildInputs = [ pkgconfig ]; | |
}; | |
in | |
# in final version for custom overlay, replace with buildPythonApplication and remove shell hook | |
stdenv.mkDerivation { | |
name = "myapp"; | |
buildInputs = with python27Packages; [ click six gevent requests2 tdbus ]; | |
shellHook = '' | |
PYTHONPATH=$PYTHONPATH:$(pwd) | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment