On Tue, Jul 24, 2012 at 9:46 PM, Eelco Dolstra
<[email protected]> wrote:
> Hi,
>
> On 24/07/12 14:34, Cillian de Róiste wrote:
>
>> Perhaps other people already have similar scripts or workflows or
>> ideas of how we could go about this?
>
> Maybe something like:
>
> $ nix-env -f . -qaP \* --drv-path | sort > l1
> (...modify package...)
> $ nix-env -f . -qaP \* --drv-path | sort > l2
> $ changed=$(diff l1 l2 | awk '{print $2}' | sort | uniq)
> $ nix-build $(for i in $changed; do echo -A $i; done)

Thanks! This works very well. I've added it to the wiki:
https://nixos.org/wiki/Contributing

Cheers,
Cillian
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to