checkpoint

This commit is contained in:
2025-12-14 20:47:20 -06:00
parent 7ce7910365
commit 27f6746592
5 changed files with 238 additions and 37 deletions

View File

@@ -49,34 +49,31 @@
];
in
{
packages.default = pkgs.buildGoModule {
inherit pname version;
src = self;
packages.default = pkgs.buildGoModule {
pname = "sumi";
version = "0.1.0";
# raylib-go uses CGO to link against libraylib
env.CGO_ENABLED = 1;
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter = path: type:
let base = builtins.baseNameOf path;
in base != "vendor" && base != ".git";
};
# GOFLAGS = [ "-mod=mod" ];
# proxyVendor = true;
env.CGO_ENABLED = 1;
nativeBuildInputs = nativeDeps;
buildInputs = raylibDeps;
nativeBuildInputs = nativeDeps;
buildInputs = raylibDeps;
# If your main package isnt at repo root, set this (examples):
# subPackages = [ "./cmd/sketch" ];
vendorHash = "sha256-teooSdWKQ08cYn/yWMZ8JKuo4rGnV5QOt2Zxzp34Q+I=";
# First build will fail with a message containing the correct hash.
vendorHash = "sha256-pcNGzxHripkn9lX2R9O29nYvR+hWLxIev4KJmEhQwC8=";
# use this every time there's vendor changeO
# vendorHash = pkgs.lib.fakeHash;
# Optional: strip for smaller binaries
ldflags = [
"-s"
"-w"
];
doCheck = false;
};
ldflags = [ "-s" "-w" ];
doCheck = false;
};
devShells.default = pkgs.mkShell {
# Tools you want while hacking