automerge/flake.nix
2021-12-19 14:59:40 +00:00

59 lines
1.5 KiB
Nix

{
description = "automerge-rs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
overlays = [ rust-overlay.overlay ];
inherit system;
};
lib = pkgs.lib;
rust = pkgs.rust-bin.stable.latest.rust;
cargoNix = pkgs.callPackage ./Cargo.nix {
inherit pkgs;
release = true;
};
debugCargoNix = pkgs.callPackage ./Cargo.nix {
inherit pkgs;
release = false;
};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs;
[
(rust.override {
extensions = [ "rust-src" ];
targets = [ "wasm32-unknown-unknown" ];
})
cargo-edit
cargo-watch
cargo-criterion
cargo-fuzz
cargo-flamegraph
crate2nix
wasm-pack
pkgconfig
openssl
gnuplot
nodejs
yarn
rnix-lsp
nixpkgs-fmt
];
};
});
}