Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported input type 'file' #53

Open
shajra opened this issue Mar 6, 2023 · 2 comments
Open

Supported input type 'file' #53

shajra opened this issue Mar 6, 2023 · 2 comments

Comments

@shajra
Copy link

shajra commented Mar 6, 2023

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";
}
@grantshandy
Copy link

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

d-xo added a commit to ethereum/hevm that referenced this issue Oct 22, 2024
Cleans up the nix flake as follows:

- conform to modern nixpkgs standards by removing the `with` statements
  and making scoping explicit
- removing `flake-compat` (which was broken on macos due to
  edolstra/flake-compat#53).

Additionally reworks the structure a little and makes the default flake
output dynamically linked, making it easier to consume from other nix
flakes (e.g. act).
d-xo added a commit to ethereum/hevm that referenced this issue Oct 22, 2024
Cleans up the nix flake as follows:

- conform to modern nixpkgs standards by removing the `with` statements
  and making scoping explicit
- removing `flake-compat` (which was broken on macos due to
  edolstra/flake-compat#53).

Additionally reworks the structure a little and makes the default flake
output dynamically linked, making it easier to consume from other nix
flakes (e.g. act).
d-xo added a commit to ethereum/hevm that referenced this issue Oct 22, 2024
Cleans up the nix flake as follows:

- conform to modern nixpkgs standards by removing the `with` statements
  and making scoping explicit
- removing `flake-compat` (which was broken on macos due to
  edolstra/flake-compat#53).

Additionally reworks the structure a little and makes the default flake
output dynamically linked, making it easier to consume from other nix
flakes (e.g. act).
@edolstra
Copy link
Owner

Yes, this is what the file input type is for. But it's currently unsupported by flake-compat (see #44).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants