rustshop / flakebox

Flakebox is to your Rust project dev environment, what NixOS is to your OS, or home-manager to your home directory.
96 stars 5 forks source link

missing `lib.fileset` #131

Closed okjodom closed 4 months ago

okjodom commented 5 months ago

I'm following along the tutorial to set up a dev shell and got as far as

{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";

    flakebox = {
      url = "github:rustshop/flakebox";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flakebox, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        flakeboxLib = flakebox.lib.${system} { };
      in
      {
        devShells = flakeboxLib.mkShells {
          packages = [ ];
        };
      });
}

on running nix run nixpkgs#nix flake check, i encounter the following error:

error:
       … while checking flake output 'devShells'

         at /nix/store/qkig73szmrhgp0qhncxy5vb36lw2g3jj-source/lib.nix:39:17:

           38|               {
           39|                 ${key} = (attrs.${key} or { })
             |                 ^
           40|                   // { ${system} = ret.${key}; };

       … while checking the derivation 'devShells.x86_64-linux.default'

         at /nix/store/0c36hfc4mdihdf87vm3kg14013vnzwi8-source/lib/mkShells.nix:22:3:

           21|   lint = mkLintShell { packages = lintPackages; };
           22|   default = mkDevShell cleanedArgs;
             |   ^
           23|

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'fileset' missing

       at /nix/store/0c36hfc4mdihdf87vm3kg14013vnzwi8-source/lib/flakeboxBin.nix:5:8:

            4| let
            5|   fs = lib.fileset;
             |        ^
            6|   fileSet = fs.unions [
dpc commented 4 months ago

Fixed. nixos-23.11 is required.