aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2024-06-11 03:50:13 +0200
committerGitHub <noreply@github.com>2024-06-11 09:50:13 +0800
commitabc92df701bbae8b5d1d98ba91b609d03ce4d7b5 (patch)
tree5f8df5f02e66b730da7f1978ad860b29496f868d /flake.nix
parent1dc8a660741ad162f8b59a74f07b5517467c5262 (diff)
downloadgitea-abc92df701bbae8b5d1d98ba91b609d03ce4d7b5.tar.gz
gitea-abc92df701bbae8b5d1d98ba91b609d03ce4d7b5.zip
Add nix flake for dev shell (#30967) (#31310)
Backport #30967
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000000..c6e915e9db
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,37 @@
+{
+ 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
+ ];
+ };
+ }
+ );
+}