[Nix-dev] recent calligra breakage - how to prevent?

Moritz Ulrich moritz at tarn-vedra.de
Sat Jan 24 13:33:48 CET 2015


Marc Weber <marco-oweber at gmx.de> writes:

> Recently calligra broke.
>
> I'd like to introduce a simple patch like this: http://mawercer.de/tmp/calligra.patch
> It should ensure that the build fails eg if krita is missing. The
> problem was that updating eigen caused calligra to determine krita
> cannot be build, so everything else of the suite was build.
>
> Now this is a "hack" - what about being more declarative introducing
>
> mkDerivation {
>   [...]
>
>   expect.executables = ["krita" ...]
>
> }
>
> Later this could also be used for documentation purposes - eg finding
> packages which provide some specific executables.
>
> Does this already exist?
>
> Marc Weber
> Im Tannhoernle 4/1
> D-78052 Villingen-Schwenningen
> Germany
>
> Mobil: 017660032282
>
> Steuernummer: 22483/ 29259
> Finanzamt Villingen-Schwenningen
> DE12345678
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

I like the idea, but where do we draw the distinction between testPhase
and except(?)Phase? For small & simple (cli) programs we can just run the
executables in the testPhase.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150124/73e40e77/attachment.bin 


More information about the nix-dev mailing list