import the module?
This commit is contained in:
parent
0c8bdc4610
commit
08c38cfdce
31
default2.nix
Normal file
31
default2.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user