mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Add shell.nix
This commit is contained in:
parent
503cedd14e
commit
463656a9a1
2 changed files with 29 additions and 2 deletions
13
flake.nix
13
flake.nix
|
@ -14,8 +14,19 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
defaultPackage = pkgs.callPackage ./pict-rs.nix {
|
packages = rec {
|
||||||
|
pict-rs = pkgs.callPackage ./pict-rs.nix {
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
|
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
16
shell.nix
Normal 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}";
|
||||||
|
}
|
Loading…
Reference in a new issue