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, ldkNode,
}: }:
buildGoModule rec { buildGoModule {
pname = "ldk-node-go"; pname = "ldk-node-go";
version = "0-unstable-2025-05-25"; version = "0-unstable-2025-05-25";

View File

@ -6,7 +6,7 @@
llvmPackages, llvmPackages,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (finalAttrs: {
pname = "ldk-node"; pname = "ldk-node";
version = "0-unstable-2025-05-21"; version = "0-unstable-2025-05-21";
@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec {
meta = { meta = {
description = "Embeds the LDK node implementation compiled as shared library objects"; description = "Embeds the LDK node implementation compiled as shared library objects";
homepage = "https://github.com/getAlby/ldk-node"; 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; [ license = with lib.licenses; [
asl20 asl20
mit mit
@ -45,4 +45,4 @@ rustPlatform.buildRustPackage rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ bleetube ]; maintainers = with lib.maintainers; [ bleetube ];
}; };
} })

View File

@ -21,14 +21,14 @@ let
in in
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "albyhub"; pname = "albyhub";
version = "1.17.2"; version = "1.17.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "getAlby"; owner = "getAlby";
repo = "hub"; repo = "hub";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-7+5VWLO4J+ArHyTxapqVQL5GPofV4/QXCu5g+Ix9HoI="; hash = "sha256-7+5VWLO4J+ArHyTxapqVQL5GPofV4/QXCu5g+Ix9HoI=";
}; };
@ -48,7 +48,7 @@ buildGoModule rec {
]; ];
frontendYarnOfflineCache = fetchYarnDeps { frontendYarnOfflineCache = fetchYarnDeps {
yarnLock = src + "/frontend/yarn.lock"; yarnLock = finalAttrs.src + "/frontend/yarn.lock";
hash = "sha256-SStTJGqeqPvXBKjFMPjKEts+jg6A9Vaqi+rZkr/ytdc="; hash = "sha256-SStTJGqeqPvXBKjFMPjKEts+jg6A9Vaqi+rZkr/ytdc=";
}; };
@ -56,7 +56,7 @@ buildGoModule rec {
export HOME=$TMPDIR export HOME=$TMPDIR
pushd frontend pushd frontend
fixup-yarn-lock yarn.lock 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 yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules patchShebangs node_modules
yarn --offline build:http yarn --offline build:http
@ -68,7 +68,7 @@ buildGoModule rec {
]; ];
ldflags = [ ldflags = [
"-X github.com/getAlby/hub/version.Tag=v${version}" "-X github.com/getAlby/hub/version.Tag=v${finalAttrs.version}"
"-s" "-s"
"-w" "-w"
]; ];
@ -95,4 +95,4 @@ buildGoModule rec {
maintainers = with lib.maintainers; [ bleetube ]; maintainers = with lib.maintainers; [ bleetube ];
mainProgram = "albyhub"; mainProgram = "albyhub";
}; };
} })