Open luochen1990 opened 3 weeks ago
I'm not a nix expert, but I would suggest a more flexible option that supports more fetchers. For example, for my purposes, I use the following solution to load local packages:
let
serverPack = builtins.path {
path = ./modpacks/server;
};
serverModpack = (pkgs.fetchPackwizModpack {
url = "file://${serverPack}/pack.toml";
packHash = "sha256-zdhJ1cv8nCzqoAD9vsXk6vAzPUMFI8G6k3ComHrQaE0=";
});
in
{}
I hope these code
Can be replaced into:
And if the name of
pack.toml
is not special enough, we can specify it like