This commit is contained in:
efim
2023-12-01 08:31:47 +00:00
commit 4f286742bb
7 changed files with 98 additions and 0 deletions

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
description = "my advent of code 2023 exercises";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.wgo
pkgs.semgrep
pkgs.gopls
];
shellHook = ''
export GOPATH=$PWD/.go
export PATH=$GOPATH/bin:$PATH
'';
};
});
}