Add missing build dependencies to devshell.
I assume these were knocking around in the system environment on my mac.
This commit is contained in:
parent
65282bf553
commit
4515e8d15d
52
flake.nix
52
flake.nix
|
@ -6,29 +6,41 @@
|
||||||
naersk.url = "github:nix-community/naersk";
|
naersk.url = "github:nix-community/naersk";
|
||||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, utils, naersk, devshell, rust-overlay }:
|
outputs = {
|
||||||
utils.lib.eachDefaultSystem (system:
|
self,
|
||||||
let
|
nixpkgs,
|
||||||
pkgs = import nixpkgs { inherit system; };
|
utils,
|
||||||
naersk-lib = pkgs.callPackage naersk { };
|
naersk,
|
||||||
in
|
devshell,
|
||||||
{
|
rust-overlay,
|
||||||
defaultPackage = naersk-lib.buildPackage ./.;
|
}:
|
||||||
|
utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
|
naersk-lib = pkgs.callPackage naersk {};
|
||||||
|
in {
|
||||||
|
defaultPackage = naersk-lib.buildPackage ./.;
|
||||||
|
|
||||||
defaultApp = utils.lib.mkApp {
|
defaultApp = utils.lib.mkApp {
|
||||||
drv = self.defaultPackage."${system}";
|
drv = self.defaultPackage."${system}";
|
||||||
};
|
};
|
||||||
devShell =
|
devShells.default = let
|
||||||
let pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
overlays = [ devshell.overlay (import rust-overlay)];
|
overlays = [devshell.overlay (import rust-overlay)];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.devshell.mkShell {
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [ dhall (rust-bin.stable.latest.default.override {
|
buildInputs = with pkgs; [
|
||||||
extensions = [ "rls" ];
|
dhall
|
||||||
})];
|
(rust-bin.stable.latest.default.override {
|
||||||
|
extensions = ["rls"];
|
||||||
|
})
|
||||||
|
pkg-config
|
||||||
|
libusb
|
||||||
|
openssl
|
||||||
|
];
|
||||||
};
|
};
|
||||||
});
|
formatter = pkgs.alejandra;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue