Updates
This commit is contained in:
parent
0a59f1ed86
commit
f3877f8b0b
33
flake.nix
33
flake.nix
|
@ -12,33 +12,32 @@
|
|||
in
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
with nixpkgs.legacyPackages.${system}; {
|
||||
imports = [
|
||||
./module.nix
|
||||
];
|
||||
|
||||
nixosModules = {
|
||||
# add moduleA from flakeA as an output
|
||||
# moduleA = flakeA.nixosModules.moduleA;
|
||||
default = import ./module.nix;
|
||||
};
|
||||
|
||||
packages.${productName} = rustPlatform.buildRustPackage {
|
||||
name = "${productName}";
|
||||
version = "${productVersion}";
|
||||
packages =
|
||||
{
|
||||
default =
|
||||
rustPlatform.buildRustPackage {
|
||||
name = "${productName}";
|
||||
version = "${productVersion}";
|
||||
|
||||
src = lib.cleanSource ./.;
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
cargoSha256 = "sha256-d84QNj9SIRUwtlsa9sdYKuYf0oCptdGm7pDs3eGTcBg=";
|
||||
cargoSha256 = "sha256-d84QNj9SIRUwtlsa9sdYKuYf0oCptdGm7pDs3eGTcBg=";
|
||||
|
||||
preConfigure = ''
|
||||
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
|
||||
'';
|
||||
nativeBuildInputs = [ cargo clang cmake ];
|
||||
preConfigure = ''
|
||||
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
|
||||
'';
|
||||
nativeBuildInputs = [ cargo clang cmake ];
|
||||
};
|
||||
# default = "${productName}";
|
||||
};
|
||||
|
||||
defaultPackage = self.packages.${system}.${productName};
|
||||
|
||||
devShell = mkShell {
|
||||
|
||||
devShells.default = mkShell {
|
||||
inputsFrom = builtins.attrValues self.packages.${system};
|
||||
|
||||
shellHook = ''
|
||||
|
|
|
@ -77,7 +77,7 @@ in {
|
|||
# electrs only uses the working directory for reading electrs.toml
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
ExecStart = ''
|
||||
${config.pkgs.blockstream-electrs}/bin/electrs \
|
||||
${pkgs.blockstream-electrs}/bin/electrs \
|
||||
--log-filters=INFO \
|
||||
--network=${bitcoind.makeNetworkName "bitcoin" "regtest"} \
|
||||
--db-dir='${cfg.dataDir}' \
|
||||
|
|
Loading…
Reference in New Issue
Block a user