Add shell.nix
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
asonix 2023-03-09 20:19:40 -06:00
parent 503cedd14e
commit 463656a9a1
2 changed files with 29 additions and 2 deletions

View file

@ -14,8 +14,19 @@
};
in
{
defaultPackage = pkgs.callPackage ./pict-rs.nix {
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
packages = rec {
pict-rs = pkgs.callPackage ./pict-rs.nix {
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
};
default = pict-rs;
};
apps = rec {
dev = flake-utils.lib.mkApp { drv = self.packages.${system}.pict-rs; };
default = dev;
};
devShell = pkgs.callPackage ./shell.nix { };
});
}

16
shell.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs
, mkShell
, cargo
, clippy
, gcc
, protobuf
, rust-analyzer
, rustc
, rustfmt
}:
mkShell {
nativeBuildInputs = [ cargo clippy gcc protobuf rust-analyzer rustc rustfmt ];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}