add direnv and flake.nix

This commit is contained in:
Deadbeef 2023-05-26 19:50:54 +08:00
parent a7881a426b
commit 4d234fc6a0
4 changed files with 83 additions and 1 deletions

18
flake.nix Normal file
View file

@ -0,0 +1,18 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
gcc
];
};
});
}