Skip to content

Commit

Permalink
Import alf-nix-devenv as the nix-based development environment. (Hori…
Browse files Browse the repository at this point in the history
  • Loading branch information
breakds authored and pd-perry committed Dec 11, 2021
1 parent 1038f83 commit 2119dbc
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ cd alf
pip install -e .
```

**For Nix Users**: There is a built-in Nix-based development environment defined in [flake.nix](./flake.nix). To activate it, run

```bash
$ nix develop
```

in the root of your local repository.

## Documentation

You can read the [ALF documentation here](https://alf.readthedocs.io/).
Expand Down
80 changes: 80 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
description = "Agent Learning Framework Development Environment";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/21.05";

utils.url = "github:numtide/flake-utils";
utils.inputs.nixpkgs.follows = "nixpkgs";

alf-devenv.url = "github:HorizonRobotics/alf-nix-devenv";
alf-devenv.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, ... }@inputs: inputs.utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
] (system: {
devShell = inputs.alf-devenv.devShell."${system}";
});
}

0 comments on commit 2119dbc

Please sign in to comment.