import the module?

This commit is contained in:
Mike Heier 2023-08-12 08:19:46 -04:00
parent 0c8bdc4610
commit 08c38cfdce
3 changed files with 35 additions and 0 deletions

31
default2.nix Normal file
View File

@ -0,0 +1,31 @@
with import <nixpkgs> {};
rustPlatform.buildRustPackage rec {
name = "blockstream-electrs-${version}";
version = "0.4.1";
# src = fetchFromGitHub {
# owner = "blockstream";
# repo = "electrs";
# rev = "v0.4.1";
# sha256 = "1lqhrcyd8hdaja5k01a2banvjcbxxcwvb2p7zh05984fpzzs02gr";
# };
src = fetchGit {
url = "/home/mike/Projects/blockstream-electrs";
rev = "5895ad906d32dc96fe2cc124b6c185dc587b1b2a";
# sha256 = "5895ad906d32dc96fe2cc124b6c185dc587b1b2a";
};
LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
# cargoSha256 = "8db8bd87ffe7f31304a304bd9af0d98afccc418039239d7210481774992f3d0a";
cargoSha256 = "sha256-x7yhK0IxYgSpn8Fbm8h79c2JSoUzS1Ir+TGk2/+9ixE=";
nativeBuildInputs = [clang llvmPackages.libclang];
meta = with lib; {
description = "An efficient re-implementation of Electrum Server in Rust ";
homepage = https://github.com/blockstream/electrs;
maintainers = [ maintainers.tailhook ];
platforms = platforms.all;
};
}

View File

@ -12,6 +12,9 @@
in
flake-utils.lib.eachDefaultSystem (system:
with nixpkgs.legacyPackages.${system}; {
imports = [
./module.nix
];
nixosModules = {
# add moduleA from flakeA as an output

1
result Symbolic link
View File

@ -0,0 +1 @@
/nix/store/80wsv74aq4zsddr5b53mxldhmk77f5sg-blockstream-electrs-0.4.1