[Nix-dev] How can we test changes before pushing them to master?
Cillian de Róiste
cillian.deroiste at gmail.com
Wed Jul 25 00:12:02 CEST 2012
On Tue, Jul 24, 2012 at 9:46 PM, Eelco Dolstra
<eelco.dolstra at logicblox.com> 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
More information about the nix-dev
mailing list