nix-universal-prefetch icon indicating copy to clipboard operation
nix-universal-prefetch copied to clipboard

Arguments to fetchers are (at least sometimes) not parsed as the right type

Open malob opened this issue 2 years ago • 3 comments

I just tried to use nix-universal-prefetch with fetchzip, and I needed to use the --stripRoot argument, but this errors:

❯ nix run my#nix-universal-prefetch -- fetchzip --stripRoot false --url https://cache.agilebits.com/dist/1P/op2/pkg/v2.0.0/op_linux_386_v2.0.0.zip
nix-universal-prefetch: Couldn't parse the error output...
error: value is a string while a Boolean was expected

       at /nix/store/2hk95qkrlxwcaphx9ryw6bhqphpaixfq-source/pkgs/build-support/fetchzip/default.nix:48:8:

           47|     ''
           48|     + (if stripRoot then ''
             |        ^
           49|       if [ $(ls "$unpackDir" | wc -l) != 1 ]; then

malob avatar Mar 22 '22 18:03 malob