2024-08-02 13:56:10 -06:00
|
|
|
{
|
|
|
|
description = "An example project using flutter";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
2024-08-08 18:51:51 -06:00
|
|
|
inputs.gomod2nix = {
|
|
|
|
url = "github:tweag/gomod2nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.utils.follows = "utils";
|
|
|
|
};
|
2024-08-02 13:56:10 -06:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
flake-utils,
|
|
|
|
nixpkgs,
|
2024-08-08 18:51:51 -06:00
|
|
|
gomod2nix,
|
2024-08-02 13:56:10 -06:00
|
|
|
...
|
|
|
|
} @ inputs:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2024-08-08 18:51:51 -06:00
|
|
|
overlays = [ gomod2nix.overlays.default ];
|
2024-08-02 13:56:10 -06:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
go
|
|
|
|
gopls
|
|
|
|
gotools
|
|
|
|
go-tools
|
2024-08-08 18:51:51 -06:00
|
|
|
gomod2nix.packages.${system}.default
|
|
|
|
sqlite-interactive
|
2024-08-02 13:56:10 -06:00
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|