Unverified Commit dbec3661 authored by Brian Lee's avatar Brian Lee
Browse files

albyhub:`rec` -> `finalAttrs`

parent ec656988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  ldkNode,
}:

buildGoModule rec {
buildGoModule {
  pname = "ldk-node-go";
  version = "0-unstable-2025-05-25";

+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  llvmPackages,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "ldk-node";
  version = "0-unstable-2025-05-21";

@@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec {
  meta = {
    description = "Embeds the LDK node implementation compiled as shared library objects";
    homepage = "https://github.com/getAlby/ldk-node";
    changelog = "https://github.com/getAlby/ldk-node/blob/${src.rev}/CHANGELOG.md";
    changelog = "https://github.com/getAlby/ldk-node/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    license = with lib.licenses; [
      asl20
      mit
@@ -45,4 +45,4 @@ rustPlatform.buildRustPackage rec {
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ bleetube ];
  };
}
})
+6 −6
Original line number Diff line number Diff line
@@ -21,14 +21,14 @@ let

in

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "albyhub";
  version = "1.17.2";

  src = fetchFromGitHub {
    owner = "getAlby";
    repo = "hub";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-7+5VWLO4J+ArHyTxapqVQL5GPofV4/QXCu5g+Ix9HoI=";
  };

@@ -48,7 +48,7 @@ buildGoModule rec {
  ];

  frontendYarnOfflineCache = fetchYarnDeps {
    yarnLock = src + "/frontend/yarn.lock";
    yarnLock = finalAttrs.src + "/frontend/yarn.lock";
    hash = "sha256-SStTJGqeqPvXBKjFMPjKEts+jg6A9Vaqi+rZkr/ytdc=";
  };

@@ -56,7 +56,7 @@ buildGoModule rec {
    export HOME=$TMPDIR
    pushd frontend
      fixup-yarn-lock yarn.lock
      yarn config set yarn-offline-mirror "${frontendYarnOfflineCache}"
      yarn config set yarn-offline-mirror "${finalAttrs.frontendYarnOfflineCache}"
      yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
      patchShebangs node_modules
      yarn --offline build:http
@@ -68,7 +68,7 @@ buildGoModule rec {
  ];

  ldflags = [
    "-X github.com/getAlby/hub/version.Tag=v${version}"
    "-X github.com/getAlby/hub/version.Tag=v${finalAttrs.version}"
    "-s"
    "-w"
  ];
@@ -95,4 +95,4 @@ buildGoModule rec {
    maintainers = with lib.maintainers; [ bleetube ];
    mainProgram = "albyhub";
  };
}
})