automated snapshot

This commit is contained in:
sumi
2025-12-15 01:25:28 -06:00
parent f46bb4d17b
commit a66ea07961
9 changed files with 430 additions and 90 deletions

View File

@@ -50,30 +50,36 @@
in
{
packages.default = pkgs.buildGoModule {
pname = "sumi";
version = "0.1.0";
packages.default = pkgs.buildGoModule {
pname = "sumi";
version = "0.1.0";
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter = path: type:
let base = builtins.baseNameOf path;
in base != "vendor" && base != ".git";
};
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter =
path: type:
let
base = builtins.baseNameOf path;
in
base != "vendor" && base != ".git";
};
env.CGO_ENABLED = 1;
env.CGO_ENABLED = 1;
nativeBuildInputs = nativeDeps;
buildInputs = raylibDeps;
nativeBuildInputs = nativeDeps;
buildInputs = raylibDeps;
vendorHash = "sha256-teooSdWKQ08cYn/yWMZ8JKuo4rGnV5QOt2Zxzp34Q+I=";
#vendorHash = "sha256-HDfllPEKJZOtkSoasS1yDCyZrWihlkBVRstLkF8AHd0=";
# use this every time there's vendor changeO
# vendorHash = pkgs.lib.fakeHash;
# use this every time there's vendor changeO
vendorHash = pkgs.lib.fakeHash;
ldflags = [ "-s" "-w" ];
doCheck = false;
};
ldflags = [
"-s"
"-w"
];
doCheck = false;
};
devShells.default = pkgs.mkShell {
# Tools you want while hacking
@@ -82,6 +88,7 @@
gopls
delve
gotools
sqlite
];
nativeBuildInputs = nativeDeps;