Add '18-expenses-chart/' from commit '78c9bd1d614c8bdd25a3e1d23bd0a39bb01e65f1'
git-subtree-dir: 18-expenses-chart git-subtree-mainline:e13fa186e1git-subtree-split:78c9bd1d61
This commit is contained in:
32
18-expenses-chart/flake.nix
Normal file
32
18-expenses-chart/flake.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
rec {
|
||||
description = "templ-practice";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
templ.url = "github:a-h/templ";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, templ }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
templPkg = templ.packages.${system}.templ;
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.go
|
||||
pkgs.wgo
|
||||
pkgs.semgrep
|
||||
pkgs.gopls
|
||||
pkgs.gnumake
|
||||
templPkg
|
||||
pkgs.tailwindcss
|
||||
];
|
||||
shellHook = ''
|
||||
export GOPATH=$PWD/.go
|
||||
export PATH=$GOPATH/bin:$PATH
|
||||
'';
|
||||
};
|
||||
});
|
||||
# see https://serokell.io/blog/practical-nix-flakes
|
||||
}
|
||||
Reference in New Issue
Block a user