Closed okjodom closed 4 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:
nix run nixpkgs#nix flake check
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 [
Fixed. nixos-23.11 is required.
nixos-23.11
I'm following along the tutorial to set up a dev shell and got as far as
on running
nix run nixpkgs#nix flake check
, i encounter the following error: