Add missing build dependencies to devshell.

I assume these were knocking around in the system environment on my mac.
This commit is contained in:
Sam W 2022-07-06 23:14:53 +00:00
parent 65282bf553
commit 4515e8d15d
1 changed files with 32 additions and 20 deletions

View File

@ -6,29 +6,41 @@
naersk.url = "github:nix-community/naersk";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, utils, naersk, devshell, rust-overlay }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
outputs = {
self,
nixpkgs,
utils,
naersk,
devshell,
rust-overlay,
}:
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
naersk-lib = pkgs.callPackage naersk {};
in {
defaultPackage = naersk-lib.buildPackage ./.;
defaultApp = utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
devShell =
let pkgs = import nixpkgs {
defaultApp = utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
devShells.default = let
pkgs = import nixpkgs {
inherit system;
overlays = [ devshell.overlay (import rust-overlay)];
overlays = [devshell.overlay (import rust-overlay)];
};
in
pkgs.devshell.mkShell {
packages = with pkgs; [ dhall (rust-bin.stable.latest.default.override {
extensions = [ "rls" ];
})];
in
pkgs.mkShell {
buildInputs = with pkgs; [
dhall
(rust-bin.stable.latest.default.override {
extensions = ["rls"];
})
pkg-config
libusb
openssl
];
};
});
formatter = pkgs.alejandra;
});
}