I’m trying to initialize a shell from a flake in a repository of mine on GitHub. When I run nix shell github:biscotty666/RCensus
I get the error
error: flake 'github:biscotty666/RCensus' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'
I have played with the outputs, but still get the error. I’ve never tried this before, I’ve always just cloned the repository. The relevant (I think) part of the flake is:
{
description = "A basic flake with a shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
outputs =
{ self, nixpkgs, flake-utils, devDB, ... }:
let supportedSystems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
in
flake-utils.lib.eachSystem supportedSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = with pkgs; mkShell {
nativeBuildInputs = [ bashInteractive ];
buildInputs = [
R
...
rstudio
];
};
}
);
}
I’d appreciate any help on this, and if I can improve on the flake please tell me.
Thanks