mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
37 lines
No EOL
1 KiB
Nix
37 lines
No EOL
1 KiB
Nix
{
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
|
|
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
|
|
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ (import rust-overlay) ];
|
|
};
|
|
in
|
|
with pkgs; rec {
|
|
devShells.default = mkShell {
|
|
|
|
shellHook = ''
|
|
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig";
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
trunk
|
|
sqlite
|
|
sass
|
|
openssl
|
|
(rust-bin.nightly.latest.default.override {
|
|
extensions = [ "rust-src" ];
|
|
targets = [ "wasm32-unknown-unknown" ];
|
|
})
|
|
];
|
|
};
|
|
});
|
|
} |