I am trying to build GitHub - mollyim/mollysocket: MollySocket allows getting Signal notifications via UnifiedPush. using cargo2nix and their minimally modified sample flake.nix
:
{
inputs = {
cargo2nix.url = "github:cargo2nix/cargo2nix/release-0.11.0";
flake-utils.follows = "cargo2nix/flake-utils";
nixpkgs.follows = "cargo2nix/nixpkgs";
};
outputs = inputs: with inputs;
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [cargo2nix.overlays.default];
};
rustPkgs = pkgs.rustBuilder.makePackageSet {
rustVersion = "1.75.0";
packageFun = import ./Cargo.nix;
};
in rec {
packages = {
mollysocket = (rustPkgs.workspace.mollysocket {});
default = packages.mollysocket;
};
}
);
}
Building using nix build
fails with /nix/store/1fn92b0783crypjcxvdv6ycmvi27by0j-binutils-2.40/bin/ld: cannot find -lsqlite3: No such file or directory
. Can I add this to my devShell
? I tried running nix build
inside the shell created via nix-shell -p pkg-config sqlite
, which failed with the same error.