homebox: 0.13.0 -> 0.15.2

The new version requires go-1.23+.
This commit is contained in:
Bjørn Forsman 2024-10-10 17:15:38 +02:00
parent f4a1842ad5
commit 9a34180788

View File

@ -1,34 +1,34 @@
{
lib,
buildGoModule,
buildGo123Module,
fetchFromGitHub,
pnpm,
nodejs,
go,
go_1_23,
git,
cacert,
nixosTests,
}:
let
pname = "homebox";
version = "0.13.0";
version = "0.15.2";
src = fetchFromGitHub {
owner = "sysadminsmedia";
repo = "homebox";
rev = "v${version}";
hash = "sha256-mhb4q0ja94TjvOzl28WVb3uzkR9MKlqifFJgUo6hfrA=";
hash = "sha256-2jB2Oo0dK36n5tQPrGNyPO3Q0yNkUms4RPQzXiDzuks=";
};
in
buildGoModule {
buildGo123Module {
inherit pname version src;
vendorHash = "sha256-QRmP6ichKjwDWEx13sEs1oetc4nojGyJnKafAATTNTA=";
vendorHash = "sha256-Ftm5tR3w8S3mjYLJG0+17nYP5kDbaAd8QkbZpNt7WuE=";
modRoot = "backend";
# the goModules derivation inherits our buildInputs and buildPhases
# Since we do pnpm thing in those it fails if we don't explicitely remove them
overrideModAttrs = _: {
nativeBuildInputs = [
go
go_1_23
git
cacert
];
@ -38,7 +38,7 @@ buildGoModule {
pnpmDeps = pnpm.fetchDeps {
inherit pname version;
src = "${src}/frontend";
hash = "sha256-MdTZJ/Ichpwc54r7jZjiFD12YOdRzHSuzRZ/PnDk2mY=";
hash = "sha256-SyKET+W9Fn1WETzF4KlAtLOzNI/DOavHUbC7Yfv6kFw=";
};
pnpmRoot = "../frontend";