mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-30 17:35:55 +00:00
de6f0488a6
To try it you need **nix** installed `nix-daemon ` running and your user has to be member of the **nix-users** group. Or use NixOS. then by just: ```sh nix develop -c $SHELL ``` a dedicated development environment with all needed packages will be created.
38 lines
717 B
Nix
38 lines
717 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
outputs =
|
|
{ nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
# generic
|
|
git
|
|
git-lfs
|
|
gnumake
|
|
gnused
|
|
gnutar
|
|
gzip
|
|
|
|
# frontend
|
|
nodejs_20
|
|
|
|
# linting
|
|
python312
|
|
poetry
|
|
|
|
# backend
|
|
go_1_22
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|