mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 18:08:30 +02:00
Use flakes vs devbox (#723)
Reviewed-on: https://gitea.com/gitea/tea/pulls/723 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-committed-by: techknowlogick <techknowlogick@gitea.com>
This commit is contained in:

committed by
techknowlogick

parent
47ee397110
commit
60636cd7d8
30
flake.nix
Normal file
30
flake.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
description = "Tea - A command line tool to interact with Gitea";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-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 {
|
||||
name = "tea-dev-environment";
|
||||
buildInputs = with pkgs; [
|
||||
go_1_24
|
||||
gopls
|
||||
gnumake
|
||||
# Add other dependencies here if needed
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo 'Welcome to tea. Check out the Makefile for runnable targets.'
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user