checkpoint
This commit is contained in:
39
flake.nix
39
flake.nix
@@ -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 isn’t 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
|
||||
|
||||
Reference in New Issue
Block a user