mirror of
https://codeberg.org/demostf/edit.git
synced 2026-11-30 01:50:48 +01:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/release-26.05";
|
|
flakelight = {
|
|
url = "github:nix-community/flakelight";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
flakelight,
|
|
rust-overlay,
|
|
...
|
|
}:
|
|
flakelight ./. {
|
|
withOverlays = [
|
|
(import rust-overlay)
|
|
(import ./nix/overlay.nix)
|
|
];
|
|
packages = {
|
|
demostf-edit = pkgs: pkgs.demostf-edit;
|
|
};
|
|
|
|
devShells.default = pkgs:
|
|
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;
|
|
};
|
|
};
|
|
}
|