Unverified Commit 7ea800b9 authored by Sizhe Zhao's avatar Sizhe Zhao
Browse files

sing-box: use finalAttrs

parent b42d12d7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10,14 +10,14 @@
  nixosTests,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "sing-box";
  version = "1.11.11";

  src = fetchFromGitHub {
    owner = "SagerNet";
    repo = pname;
    rev = "v${version}";
    repo = "sing-box";
    tag = "v${finalAttrs.version}";
    hash = "sha256-hdYYjKBXnTqScYTUCfMmXozDD8GtIorLXnsU2Fmwg/c=";
  };

@@ -42,7 +42,7 @@ buildGoModule rec {
  nativeBuildInputs = [ installShellFiles ];

  ldflags = [
    "-X=github.com/sagernet/sing-box/constant.Version=${version}"
    "-X=github.com/sagernet/sing-box/constant.Version=${finalAttrs.version}"
  ];

  postInstall =
@@ -73,4 +73,4 @@ buildGoModule rec {
    maintainers = with lib.maintainers; [ nickcao ];
    mainProgram = "sing-box";
  };
}
})