albyhub:rec -> finalAttrs

This commit is contained in:
Brian Lee 2025-06-16 15:45:48 -07:00
parent ec65698803
commit dbec366183
No known key found for this signature in database
GPG Key ID: B9A2C1B025EC2C55
3 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
ldkNode,
}:
buildGoModule rec {
buildGoModule {
pname = "ldk-node-go";
version = "0-unstable-2025-05-25";

View File

@ -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 ];
};
}
})

View File

@ -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";
};
}
})