Allow nix to manage agda
This commit is contained in:
parent
0c7bf0508a
commit
c2c3cce920
2 changed files with 25 additions and 0 deletions
7
.envrc
Normal file
7
.envrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
use_flake() {
|
||||
watch_file flake.nix
|
||||
watch_file flake.lock
|
||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
||||
}
|
||||
|
||||
use_flake
|
18
flake.nix
Normal file
18
flake.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in {
|
||||
devShell =
|
||||
pkgs.mkShell {
|
||||
buildInputs =
|
||||
with pkgs; [
|
||||
emacs
|
||||
agda
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in a new issue