Commit 9a341807 authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

homebox: 0.13.0 -> 0.15.2

The new version requires go-1.23+.
parent f4a1842a
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
{
  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";