diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-10 03:26:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-10 03:29:19 +0900 |
| commit | 48cdf8bf852234ea3dad8dad3d571bb1d9546c32 (patch) | |
| tree | 63c397201f9c4477296e6d53d126a9e631e6f0e9 /package.nix | |
| parent | 7fb42ba49d33ba1499488d70095882d1627c5b0a (diff) | |
go: 1.26
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'package.nix')
| -rw-r--r-- | package.nix | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/package.nix b/package.nix index 099d2425..68e3b2cd 100644 --- a/package.nix +++ b/package.nix @@ -1,7 +1,7 @@ { lib, stdenv, - buildGoModule, + buildGo126Module, makeBinaryWrapper, xdg-dbus-proxy, pkg-config, @@ -17,7 +17,7 @@ fuse3, # for passthru.buildInputs - go, + go_1_26, clang, # for check @@ -28,7 +28,7 @@ withStatic ? stdenv.hostPlatform.isStatic, }: -buildGoModule rec { +buildGo126Module rec { pname = "hakurei"; version = "0.3.6"; @@ -51,7 +51,7 @@ buildGoModule rec { ]; nativeBuildInputs = [ - go + go_1_26 pkg-config wayland-scanner ]; @@ -125,16 +125,20 @@ buildGoModule rec { --inherit-argv0 --prefix PATH : ${lib.makeBinPath appPackages} ''; - passthru.targetPkgs = [ - go - clang - xorg.xorgproto - util-linux + passthru = { + go = go_1_26; - # for go generate - wayland-protocols - wayland-scanner - ] - ++ buildInputs - ++ nativeBuildInputs; + targetPkgs = [ + go_1_26 + clang + xorg.xorgproto + util-linux + + # for go generate + wayland-protocols + wayland-scanner + ] + ++ buildInputs + ++ nativeBuildInputs; + }; } |
