mirror of
https://codeberg.org/demostf/edit.git
synced 2026-11-30 10:00:50 +01:00
nix package
This commit is contained in:
parent
099905e13c
commit
70edec329d
4 changed files with 91 additions and 87 deletions
73
flake.nix
73
flake.nix
|
|
@ -1,43 +1,52 @@
|
|||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "nixpkgs/release-26.05";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
flakelight = {
|
||||
url = "github:nix-community/flakelight";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
flakelight,
|
||||
rust-overlay,
|
||||
...
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (system: let
|
||||
overlays = [(import rust-overlay)];
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
flakelight ./. {
|
||||
withOverlays = [
|
||||
(import rust-overlay)
|
||||
(import ./nix/overlay.nix)
|
||||
];
|
||||
packages = {
|
||||
demostf-edit = pkgs: pkgs.demostf-edit;
|
||||
};
|
||||
in {
|
||||
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;
|
||||
};
|
||||
});
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue