Skip to content

Instantly share code, notes, and snippets.

@georgyo
Created June 25, 2019 18:38
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 georgyo/a85061941d9b225721591dc1f077d406 to your computer and use it in GitHub Desktop.
Save georgyo/a85061941d9b225721591dc1f077d406 to your computer and use it in GitHub Desktop.
% nix-build default.nix -A ntpsec :(
/nix/store/in8dvdi5a8w6cybm3vxw4ys27kaz93iq-ntpsec-1.1.4
% ./result/bin/ntpq
ntpq: can't find Python NTP library -- check PYTHONPATH.
No module named ntp.control
% head -n 1 ./result/bin/ntpq :(
#!/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/bin/python
% /nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/bin/python :(
Python 2.7.16 (default, Mar 2 2019, 18:34:01)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python27.zip', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7/plat-linux2', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7/lib-tk', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7/lib-old', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7/lib-dynload', '/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/lib/python2.7/site-packages']
% ls result/lib/python2.7/site-packages
ntp ntp-1.1.4.egg-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment