From 97be246d2f57afb076d1f4bb4448ad32c2a1a8c7 Mon Sep 17 00:00:00 2001 From: Mike Heier Date: Sat, 12 Aug 2023 12:00:13 -0400 Subject: [PATCH] fix variables --- flake.nix | 6 +----- package.nix | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 6277f5c..4198b8e 100644 --- a/flake.nix +++ b/flake.nix @@ -5,11 +5,7 @@ }; outputs = { self, nixpkgs, flake-utils }: - let - productVersion = "0.4.1"; - productName = "blockstream-electrs"; - in - flake-utils.lib.eachDefaultSystem (system: + flake-utils.lib.eachDefaultSystem (system: with nixpkgs.legacyPackages.${system}; { packages = { diff --git a/package.nix b/package.nix index 82c3dea..6163318 100644 --- a/package.nix +++ b/package.nix @@ -1,5 +1,9 @@ { pkgs ? import { } }: +let + productVersion = "0.4.1"; + productName = "blockstream-electrs"; +in pkgs.rustPlatform.buildRustPackage { name = "${productName}"; version = "${productVersion}";