mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
c440c5b3d9
(cherry picked from commit 957c75bfd21b7ff15c37eae5c8cd86bae974ac5d)
40 lines
756 B
Nix
40 lines
756 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
|
|
gofumpt
|
|
sqlite
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|