Supported input type 'file' #53

Open
opened 2023-03-06 14:20:53 +00:00 by shajra · 1 comment
shajra commented 2023-03-06 14:20:53 +00:00 (Migrated from github.com)

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";
}
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: ```nix { narHash = "sha256-…="; outPath = "/nix/store/…-source"; } ```
grantshandy commented 2023-11-04 22:57:36 +00:00 (Migrated from github.com)

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

I'm getting this issue too, downloading an arbitrary JS file. Adding file input support would fix my package. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/flake-compat#53
No description provided.