flake-compat icon indicating copy to clipboard operation
flake-compat copied to clipboard

Supported input type 'file'

Open shajra opened this issue 2 years ago • 2 comments

I have a flake that downloads an EXE and unpacks it to get to an Electron app that's inside it for unofficially supported Linux support. I've previously done something similar with MacOS DMG files.

I think there will always be pointers to various files on the internet that we don't have controlled fetchers for. Flakes seems to be able to handle these pretty well with an input type of file. Is there any reason this can't be supported with flake-compat?

I think a solution could give this project what getFlakes returns for these file inputs:

{
    narHash = "sha256-…=";
    outPath = "/nix/store/…-source";
}

shajra avatar Mar 06 '23 14:03 shajra

I'm getting this issue too, downloading an arbitrary JS file. Adding file input support would fix my package. Thanks!

grantshandy avatar Nov 04 '23 22:11 grantshandy