[Nix-dev] Package a Simple Python Script

Sergiu Ivanov sivanov at colimite.fr
Sat Aug 27 22:08:10 CEST 2016


Hello,

I am trying to package adb-sync [0], which is essentially a Python
script.  I can easily write a default.nix taking this script from the
source directory and putting it into $out/bin (cf. attached file).  I
have some trouble with this approach though: the _runtime_ dependencies
(Python and Android SDK) are not installed.

What would be the Nix-ish way of handling such a situation?

I tried playing with buildInputs, but, of course, this doesn't really
help with runtime dependencies.

I would like to avoid creating a pip package if possible (to avoid extra
maintenance effort).

-- 
Sergiu

[0] https://github.com/google/adb-sync
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.nix
Type: application/octet-stream
Size: 800 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160827/973a0f3a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160827/973a0f3a/attachment-0001.sig>


More information about the nix-dev mailing list