6 Oct 2023 |
ethantuttle | Feels like the latter argument is not too strong, but the initial one, I don't understand enough to comment. | 15:10:55 |
shaurya947_61140 | I would be happy to not have super long derive s on each struct if they're mostly going to be the same. There are several macros in the codebase to reduce repetition. | 18:57:22 |
7 Oct 2023 |
| gigabitcoin joined the room. | 06:27:04 |
| _b_i_s_c_u_i_t_s_ joined the room. | 09:03:00 |
9 Oct 2023 |
m1sterc001guy | Looks like bitcoincore.org is down and is causing our linter to fail lol | 01:41:34 |
.justinmoon | Is that CI job required to pass? Perhaps we should make it optional if it isn't already? | 12:29:45 |
m1sterc001guy | I believe its optional | 14:22:33 |
ethantuttle | https://github.com/EthnTuttle/awesome-ecash/blob/master/README.md | 16:01:04 |
ethantuttle | * https://github.com/EthnTuttle/awesome-ecash/ | 16:01:08 |
dpcpw | I just noticed that jitsi does not have corrupted video now. Something has changed under the hood, because I also hear a variable speed voice which sometimes sounds funny. | 16:29:40 |
m1sterc001guy | oh yeah me too | 16:31:07 |
needcreations | Redacted or Malformed Event | 22:57:47 |
needcreations | Redacted or Malformed Event | 22:57:47 |
10 Oct 2023 |
ethantuttle | Bitcoin Park doing a LN month in October. Seems like now would be a good time to shill fedimint gateways to LN node operators? As an option to consider for theri operations. | 00:21:27 |
ethantuttle | CC: kodylow | 00:22:00 |
ethantuttle | Rust devs, do you commit if it doesn't compile? I always hesitate to but sometime the wrestling with the compiler is lengthy. | 01:55:34 |
| 0xsaksham changed their display name from 0xSaksham to 0xsaksham#0. | 13:33:11 |
| 0xsaksham changed their display name from 0xsaksham#0 to 0xsaksham. | 13:33:13 |
dpcpw | During local work i spam chore: wip commits anytime I feel like. | 16:17:35 |
11 Oct 2023 |
ethantuttle | then rebase -i and squash locally before pushing. | 01:32:19 |
ethantuttle | 💡 | 01:32:27 |
dpcpw | While at it: git absorb is great. | 01:48:48 |
realeinherjar | Redacted or Malformed Event | 19:00:06 |
realeinherjar | Guys we are trying to migrate our CI at BDK to Nix. I am having a really hard time figuring it out how to point crane to a Cargo.toml .
Here are some details:
.
├── Cargo.lock
├── Cargo.toml
└── crates
├── bdk
│ └── Cargo.toml
├── bitcoind_rpc
│ └── Cargo.toml
├── chain
│ └── Cargo.toml
├── electrum
│ └── Cargo.toml
├── esplora
│ └── Cargo.toml
└── file_store
└── Cargo.toml
As you can see there's only one Cargo.lock at the root of the repo.
Here are the important parts of the flake.nix :
outputs = { self, nixpkgs, nixpkgs-bitcoind, crane, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
lib = pkgs.lib;
pkgs = import nixpkgs {
inherit system overlays;
};
craneLib = crane.lib.${system};
commonArgs = {
src = craneLib.cleanCargoSource (craneLib.path ./crates/bdk);
buildInputs = [
pkgs-bitcoind.bitcoind
pkgs.electrs
pkgs.openssl
];
nativeBuildInputs = [
pkgs.python3
];
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "bdk";
});
bdkClippy = craneLib.cargoClippy (commonArgs // {
inherit cargoArtifacts;
pname = "bdk";
cargoClippyExtraArgs = "--all-features --all-targets -- -D warnings";
});
bdk = craneLib.buildDepsOnly (commonArgs // {
inherit cargoArtifacts;
pname = "bdk";
});
in
{
checks = {
inherit bdkClippy;
};
packages.default = bdk;
};
}); | 19:05:03 |
realeinherjar | I am getting the following error:
warning: Git tree '/Users/einherjar/git/btc/bdk' is dirty
error:
… while checking flake output 'checks'
at /nix/store/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source/lib.nix:39:17:
38| {
39| ${key} = (attrs.${key} or { })
| ^
40| // { ${system} = ret.${key}; };
… while checking the derivation 'checks.aarch64-darwin.bdkClippy'
at /nix/store/7sf8jijcv573vj2sfjzkwc2nq2lpv1xd-source/flake.nix:115:18:
114| # Build the crate as part of `nix flake check` for convenience
115| inherit bdkClippy;
| ^
116|
(stack trace truncated; use '--show-trace' to show the full trace)
error: unable to find Cargo.lock at /nix/store/6lr0d0kxkbxpcdckn6x824m4aman3w15-source. please ensure one of the following:
- a Cargo.lock exists at the root of the source directory of the derivation
- set `cargoVendorDir = vendorCargoDeps { cargoLock = ./some/path/to/Cargo.lock; }`
- set `cargoVendorDir = vendorCargoDeps { src = ./src/containing/cargo/lock/file; }`
- set `cargoVendorDir = null` to skip vendoring altogether | 19:05:17 |
realeinherjar | * I am getting the following error:
I ~/g/b/bdk einherjar/nix• 9.2s ❱ nix flake check
warning: Git tree '/Users/einherjar/git/btc/bdk' is dirty
error:
… while checking flake output 'checks'
at /nix/store/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source/lib.nix:39:17:
38| {
39| ${key} = (attrs.${key} or { })
| ^
40| // { ${system} = ret.${key}; };
… while checking the derivation 'checks.aarch64-darwin.bdkClippy'
at /nix/store/7sf8jijcv573vj2sfjzkwc2nq2lpv1xd-source/flake.nix:115:18:
114| # Build the crate as part of `nix flake check` for convenience
115| inherit bdkClippy;
| ^
116|
(stack trace truncated; use '--show-trace' to show the full trace)
error: unable to find Cargo.lock at /nix/store/6lr0d0kxkbxpcdckn6x824m4aman3w15-source. please ensure one of the following:
- a Cargo.lock exists at the root of the source directory of the derivation
- set `cargoVendorDir = vendorCargoDeps { cargoLock = ./some/path/to/Cargo.lock; }`
- set `cargoVendorDir = vendorCargoDeps { src = ./src/containing/cargo/lock/file; }`
- set `cargoVendorDir = null` to skip vendoring altogether | 19:05:32 |
ethantuttle | CC: cguida | 19:08:31 |
ethantuttle | * CC: cguida dpcpw | 19:08:38 |
| needcreations changed their display name from needcreations#0 to @NEEDcreations (Phil). | 19:18:51 |
cguida | Not sure, would need to do some experimentation, maybe dpcpw knows | 19:19:47 |