mirror of
https://codeberg.org/demostf/edit.git
synced 2026-10-01 07:34:05 +02:00
43 lines
936 B
Nix
43 lines
936 B
Nix
{
|
|
inputs = {
|
|
utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "nixpkgs/release-25.05";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
utils,
|
|
rust-overlay,
|
|
}:
|
|
utils.lib.eachDefaultSystem (system: let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
in rec {
|
|
devShell = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
(rust-bin.stable.latest.default.override {
|
|
targets = [ "wasm32-unknown-unknown" ];
|
|
})
|
|
rustc
|
|
cargo
|
|
bacon
|
|
cargo-edit
|
|
cargo-outdated
|
|
clippy
|
|
cargo-audit
|
|
hyperfine
|
|
valgrind
|
|
wasm-pack
|
|
pkg-config
|
|
nodejs
|
|
];
|
|
|
|
buildInputs = with pkgs; [openssl];
|
|
OPENSSL_NO_VENDOR = 1;
|
|
};
|
|
});
|
|
}
|