permute/flake.nix

37 lines
790 B
Nix
Raw Normal View History

2024-05-26 18:38:08 +00:00
{
description = "actix-http";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages.default = pkgs.hello;
devShell = with pkgs; mkShell {
nativeBuildInputs = [
cargo
cargo-outdated
clippy
openssl
pkg-config
rust-analyzer
rustc
rustfmt
stdenv.cc
taplo
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
}