Add support for fetching URLs as inputs.

[?]
Feb 5, 2013, 6:52 PM
WYXO75RJFOAOJNY5XX6KQY2FDRBJT5B6TPPVUR54OAWLU2MNOYAAC

Dependencies

  • [2] JAH3UPWA Support revision control systems via plugins

Change contents

  • replacement in src/lib/Hydra/Plugin/PathInput.pm at line 37
    [2.14398][2.14398:14508]()
    $storePath = `nix-store --add "$uri"`
    or die "cannot copy path $uri to the Nix store.\n";
    [2.14398]
    [2.14508]
    if ( $uri =~ /^\// ) {
    $storePath = `nix-store --add "$uri"`
    or die "cannot copy path $uri to the Nix store.\n";
    } else {
    $storePath = `PRINT_PATH=1 nix-prefetch-url "$uri" | tail -n 1`
    or die "cannot fetch $uri to the Nix store.\n";
    }