dioxus-dx-run-test/flake.nix

46 lines
1 KiB
Nix
Raw Permalink Normal View History

2025-03-19 11:32:32 -05:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk/master";
};
outputs =
{
self,
nixpkgs,
utils,
naersk,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell =
with pkgs;
mkShell.override { stdenv = pkgs.clangStdenv; } {
nativeBuildInputs = [
cargo
rustc
rustfmt
rustPackages.clippy
cargo-binstall
llvmPackages.bintools
pkg-config
];
buildInputs = [
webkitgtk_4_1
gtk3
xdotool.out
2025-03-20 11:31:22 -05:00
openssl.dev
2025-03-19 11:32:32 -05:00
];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
}