add flake

This commit is contained in:
Michael Zhang 2023-02-17 00:54:49 -06:00
parent e7aea3e613
commit d9329ed6cd
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
4 changed files with 50 additions and 0 deletions

2
.envrc Normal file
View file

@ -0,0 +1,2 @@
use flake
use flake

2
.gitignore vendored
View file

@ -2,3 +2,5 @@ pkg/
api.key
.api.key.trimmed
*-handin.tar.gz
.direnv

40
flake.lock Normal file
View file

@ -0,0 +1,40 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1676283394,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
"type": "github"
},
"original": {
"id": "flake-utils",
"type": "indirect"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1667629849,
"narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3bacde6273b09a21a8ccfba15586fb165078fb62",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

6
flake.nix Normal file
View file

@ -0,0 +1,6 @@
{
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in rec { devShell = pkgs.mkShell { packages = with pkgs; [ go ]; }; });
}