Make flake compiling work

This commit is contained in:
2026-01-23 22:53:08 +01:00
parent ee733911d3
commit 1e02e659ab
2 changed files with 14 additions and 16 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/.direnv/ /.direnv/
sheetless-server sheetless-server
sheetless.db sheetless.db
/result

View File

@@ -6,18 +6,15 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = outputs = {
{
self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
...
}: }:
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: system: let
let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in {
{
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
go go
@@ -26,12 +23,12 @@
]; ];
}; };
# packages.default = pkgs.buildGoModule { packages.default = pkgs.buildGoModule {
# pname = "sheetless-server"; pname = "sheetless-server";
# version = "0.1.0"; version = "0.1.0";
# src = ./.; src = ./src;
# vendorHash = ""; # Will be computed on first build vendorHash = "sha256-NnHo1wcsX0aCBpay8eEyjmtO7+Qe8gcBPITobP7WtkA=";
# }; };
} }
); );
} }