[Nix-dev] Auto package update script v4 -- packaging

Tobias Hunger tobias.hunger at gmx.de
Sat Feb 19 10:41:09 CET 2011


On Saturday February 19 2011 02:16:45 Marc Weber wrote:
> How do you use uscan?

apt-get install devscripts on the ubuntu system I use to explore nix.

I have not install nixos yet: I need a pretty bleeding edge developer machine 
but would really love the option to step back from the edge if something goes 
wrong... which is the reason for looking into nixos (and the updater script I 
have been hacking on the last couple of days).

> I found its part of devscripts (debian) which depends on perl-po4a which
> is non trivial to package because you have to tweak the installation
> path.

Going by the description provided in debian/control the only interesting thing 
in devscripts for me is the uscan utility. That is a perl script, so copying 
it over should be enough.

The script uses Devscripts/Versort (same source package) as well as 
Dpkg/Version.pm, Dpkg/ErrorHandling.pm and Dpkg/Gettext from the debian 
package libdpkg-perl -- which is build as part of the dpkg sources and thus 
already in nixpkgs AFAICT... need to check whether perl is able to pick up the 
relevant files though:-)

Additional runtime dependencies seem to be:
libcrypt-ssleay-perl, libwww-perl, unzip, lzma, xz-utils (note: These are 
debian packages, I have not checked for the nix derivations yet).

I am rather tempted to package up pkgupdater, incl. a copy of the 
files it needs from devscripts. Copyright of those files is GPLv2 or later 
(just like the one I put on my script right now;-), so that should be OK.

Hmmm. I think it is now high time to set up a nixos instance to play in:-)

Best Regards,
Tobias



More information about the nix-dev mailing list