This commit is contained in:
Mike Heier 2023-08-12 08:34:39 -04:00
parent 0a59f1ed86
commit f3877f8b0b
2 changed files with 17 additions and 18 deletions

View File

@ -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 = ''

View File

@ -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}' \