env setup

This commit is contained in:
efim 2022-10-27 07:06:48 +00:00
commit 81c4a40259
3 changed files with 42 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.direnv/
/.envrc

26
flake.lock Normal file
View File

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1666853718,
"narHash": "sha256-JMONvHaoRwUCedeYtCD+YLLeRLCperOAEDgwzTWatMU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "bd545b559f0c573074a7fc37acba27be4be2dbeb",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

14
flake.nix Normal file
View File

@ -0,0 +1,14 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux =
pkgs.mkShell { buildInputs = [
pkgs.jdk11
pkgs.gradle
pkgs.gradle-completion
]; };
};
}