Skip to content

Instantly share code, notes, and snippets.

@avnik
Created November 9, 2018 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avnik/ce4853696ef3db9368e2158bf418e464 to your computer and use it in GitHub Desktop.
Save avnik/ce4853696ef3db9368e2158bf418e464 to your computer and use it in GitHub Desktop.
{ }:
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