Disabling http tests for guix
Thomas Mader
thomas.mader at gmail.com
Mon Feb 12 21:19:35 UTC 2018
On Wednesday, 4 January 2017 at 18:40:57 UTC, fredmanglis wrote:
> Hi.
>
> I'm packaging ldc-1.1.0-beta6 for guix, which does not allow
> for network access when building the package, leading to
> errors, and timeouts when the tests are run.
>
> Is there a way to deactivate such tests, say a flag passed to
> the build system or such? I would be grateful if you'd point me
> to one.
>
> In the meantime, I have had to make use of huge patches to
> deactivate the tests to make the builds pass, which does not
> seem sustainable
I am packaging ldc for NixOS and I was having the same problem
there.
I solved it by putting the tests with special needs into a fixed
output derivation.
That's how it is called in Nix world. Fixed output derivation's
always produce the same output and are therefore allowed to
access the network. They are also used to implement all kinds of
fetchers to get the source archives from GitHub and the like.
guix sure has something equal because it basically is the same
system. They even use parts of Nix.
Here you can take a look into the current package:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/ldc/default.nix
More information about the digitalmars-d-ldc
mailing list