automerge/flake.nix
Philip Schatz 407faefa6e
A few setup fixes (#529)
* include deno in dependencies

* install javascript dependencies

* remove redundant operation
2023-02-15 09:23:02 +00:00

69 lines
1.4 KiB
Nix

{
description = "automerge-rs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
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.overlays.default];
inherit system;
};
rust = pkgs.rust-bin.stable.latest.default;
in {
formatter = pkgs.alejandra;
packages = {
deadnix = pkgs.runCommand "deadnix" {} ''
${pkgs.deadnix}/bin/deadnix --fail ${./.}
mkdir $out
'';
};
checks = {
inherit (self.packages.${system}) deadnix;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
(rust.override {
extensions = ["rust-src"];
targets = ["wasm32-unknown-unknown"];
})
cargo-edit
cargo-watch
cargo-criterion
cargo-fuzz
cargo-flamegraph
cargo-deny
crate2nix
wasm-pack
pkgconfig
openssl
gnuplot
nodejs
yarn
deno
# c deps
cmake
cmocka
doxygen
rnix-lsp
nixpkgs-fmt
];
};
});
}