Support fetching file type flakes #44

Closed
matthewbauer wants to merge 5 commits from matthewbauer/support-fetching-file-type-flakes into master
matthewbauer commented 2022-08-26 20:06:49 +00:00 (Migrated from github.com)

Add supports for new type = "file" locks added in
5b8c1deb18.

Unfortunately, the hash provided by the lock file is a recursive hash,
while fetchurl wants a flat hash. So we have to use a custom fetchurl
function using the builtin:fetchurl builder. Hopefully okay just to
add compat for this very useful lock type.

cc @edolstra

Add supports for new type = "file" locks added in https://github.com/NixOS/nix/commit/5b8c1deb18e0e6fc7a83fb8101cf5fc8dba38843. Unfortunately, the hash provided by the lock file is a recursive hash, while fetchurl wants a flat hash. So we have to use a custom fetchurl function using the builtin:fetchurl builder. Hopefully okay just to add compat for this very useful lock type. cc @edolstra
jakeisnt commented 2023-02-20 16:32:38 +00:00 (Migrated from github.com)

Is this ready to merge? Would love to be able to use this

Is this ready to merge? Would love to be able to use this
matthewbauer commented 2023-02-21 18:06:12 +00:00 (Migrated from github.com)

Should be! cc @edolstra

Should be! cc @edolstra
zimbatm commented 2023-06-23 07:28:08 +00:00 (Migrated from github.com)

Hi, do you mind squashing all your commits? Then I will cherry-pick the patch into https://github.com/nix-community/flake-compat

Hi, do you mind squashing all your commits? Then I will cherry-pick the patch into https://github.com/nix-community/flake-compat
edolstra commented 2023-06-23 09:18:56 +00:00 (Migrated from github.com)

Doesn't this cause use of these inputs to be import-from-derivation? That doesn't seem desirable behaviour.

Doesn't this cause use of these inputs to be import-from-derivation? That doesn't seem desirable behaviour.
jade closed this pull request 2024-05-03 02:57:54 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.