summaryrefslogtreecommitdiff
path: root/ebus-rust/flake.nix
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2021-10-13 23:22:16 +0200
committerYves Fischer <yvesf+git@xapek.org>2021-12-31 23:57:06 +0100
commit76f8611ee3345268e2091a9d2e81b53a8b05889c (patch)
tree833dacff2aae89ec54a7fee827e75f93fba63669 /ebus-rust/flake.nix
parentcaae83f445935c06cd6aef36f283a4688675278a (diff)
downloadebus-76f8611ee3345268e2091a9d2e81b53a8b05889c.tar.gz
ebus-76f8611ee3345268e2091a9d2e81b53a8b05889c.zip
ebus parser in rust
Diffstat (limited to 'ebus-rust/flake.nix')
-rw-r--r--ebus-rust/flake.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/ebus-rust/flake.nix b/ebus-rust/flake.nix
new file mode 100644
index 0000000..b39b841
--- /dev/null
+++ b/ebus-rust/flake.nix
@@ -0,0 +1,31 @@
+{
+ inputs.nixpkgs.url = "nixpkgs/nixos-21.05";
+ inputs.flake-utils.url = "github:numtide/flake-utils";
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+ devShell = pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [
+ cargo
+ rustc
+ pkg-config
+ rustfmt
+ rls
+ clippy
+ bashInteractive
+ nixpkgs-fmt
+ gitFull
+ xxd
+ influxdb
+ ];
+ buildInputs = with pkgs; [
+ openssl
+ ];
+ RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
+ };
+ });
+}