Add Nix development shell

This commit is contained in:
Alex Auvolat
2023-05-12 12:12:09 +02:00
parent 54af93d8ff
commit 30a3cec87e
4 changed files with 156 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
{
description = "Developpment shell for Plume including nightly Rust compiler";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rust-bin.nightly.latest.default
openssl
pkg-config
gettext
postgresql
];
};
});
}