| 15 Mar 2024 |
cmacrae | nope :) let me try and get a different filter working and report back | 15:29:13 |
accelbread | one thing you can try to debug is set:
| 15:29:30 |
accelbread | {
inputs.flakelight-rust.url = "github:accelbread/flakelight-rust";
outputs = { flakelight-rust, ... }:
flakelight-rust ./. ({ lib, outputs, ... }: {
fileset = ./.;
outputs.test = lib.fileset.toList outputs.fileset;
});
}
and nix eval .#test
| 15:32:04 |
accelbread | need a recent nixpkgs for toList; one shipped with flakelight has it already iirc | 15:32:39 |
accelbread | * need a very recent nixpkgs for toList; one shipped with flakelight has it already iirce | 15:32:51 |
accelbread | * need a very recent nixpkgs for toList; one shipped with flakelight has it already iirc | 15:32:55 |
cmacrae | ah nice, that's really handy, thanks! | 15:33:33 |
cmacrae | doesn't seem like fileset is being honoured/evaluated correctly when I'm setting it like so:
outputs = { flakelight, flakelight-rust, devenv, ... }@inputs:
flakelight ./. ({ pkgs, lib, outputs, ... }: {
imports = [ flakelight-rust.flakelightModules.default ];
systems = lib.systems.flakeExposed;
fileset = ./.;
tried mkForceing it in case, that didn't work either
| 15:48:30 |
cmacrae | the handy test output you provided showed that I was able to filter how I wanted. but when the build fails for the cargo stuff, I take a look at the log, get the build env's source tree and look in there, there's only rust related contents, even though I set the filter to ./. | 15:49:47 |
accelbread | huh, should just be using it here: https://github.com/accelbread/flakelight-rust/blob/master/flakelight-rust.nix
doesnt seem like crane is overriding anything | 15:52:14 |
accelbread | if you point at a fork of flakelight-rust with that line swapped with inherit src; would that work? i'll mess around with it in a bit too to see if I can figure it out | 15:54:14 |