mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 08:31:27 -05:00
2717d7bdad
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. (cherry picked from commit de6f0488a67ad65bd2ac40356b08a78a365414cd)
37 lines
717 B
Nix
37 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
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|