Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,28 @@ To use a different nixpkgs, you can instead use:
}
```

Without Flakelight or another flake library, a flake would have to generate
per-system `devShells.${system}.default` attributes with shell derivations:

```nix
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { nixpkgs, ... }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
eachSystem = f: nixpkgs.lib.genAttrs systems
(system: f nixpkgs.legacyPackages.${system});
in
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = [ pkgs.hello pkgs.coreutils ];
};
});
Comment thread
hello-joni marked this conversation as resolved.
};
}
```

### Rust package

The following is an example flake for a Rust project using `flakelight-rust`,
Expand Down
Loading