A continuation of HomeBox the inventory and organization system built for the Home User
Add nix flake (#1119)
65430134a142fae3
diff --git a/flake.lock b/flake.locknew file mode 100644index 00000000..bd48ed79--- /dev/null+++ b/flake.lock@@ -0,0 +1,61 @@+{+ "nodes": {+ "flake-utils": {+ "inputs": {+ "systems": "systems"+ },+ "locked": {+ "lastModified": 1731533236,+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",+ "owner": "numtide",+ "repo": "flake-utils",+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",+ "type": "github"+ },+ "original": {+ "owner": "numtide",+ "repo": "flake-utils",+ "type": "github"+ }+ },+ "nixpkgs": {+ "locked": {+ "lastModified": 1774007673,+ "narHash": "sha256-gxOjM0+IHY2r0x3KfyVn4vOqsik0NeWG4lAoJ6nlJBE=",+ "owner": "nixos",+ "repo": "nixpkgs",+ "rev": "4def26f6e59f6059e1ff4367f743f530739046bf",+ "type": "github"+ },+ "original": {+ "owner": "nixos",+ "ref": "master",+ "repo": "nixpkgs",+ "type": "github"+ }+ },+ "root": {+ "inputs": {+ "flake-utils": "flake-utils",+ "nixpkgs": "nixpkgs"+ }+ },+ "systems": {+ "locked": {+ "lastModified": 1681028828,+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",+ "owner": "nix-systems",+ "repo": "default",+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",+ "type": "github"+ },+ "original": {+ "owner": "nix-systems",+ "repo": "default",+ "type": "github"+ }+ }+ },+ "root": "root",+ "version": 7+}diff --git a/flake.nix b/flake.nixnew file mode 100644index 00000000..1fab2b8c--- /dev/null+++ b/flake.nix@@ -0,0 +1,51 @@+{+ inputs = {+ nixpkgs.url = "github:nixos/nixpkgs?ref=master";+ flake-utils.url = "github:numtide/flake-utils";+ };++ outputs =+ { nixpkgs, flake-utils, ... }:+ flake-utils.lib.eachDefaultSystem (+ system:+ let+ pkgs = nixpkgs.legacyPackages.${system};+ in+ {+ devShells.default =+ with pkgs;+ let+ go = go_1_26;+ in+ pkgs.mkShell {+ buildInputs = [+ # generic+ go-task++ # frontend+ nodejs_24+ pnpm+ nodePackages.typescript+ nodePackages.typescript-language-server++ # backend+ go+ glibc.static+ gofumpt+ golangci-lint+ sqlite+ go-swag+ gcc+ libwebp+ libavif+ libheif+ libjxl+ ];+ CFLAGS = "-I${pkgs.glibc.dev}/include";+ LDFLAGS = "-L${pkgs.glibc}/lib";+ GO = "${go}/bin/go";+ GOROOT = "${go}/share/go";+ };+ }+ );+}