Skip to content

Instantly share code, notes, and snippets.

@Ultra980
Created December 8, 2023 20:00
Show Gist options
  • Save Ultra980/29082b620f38a4834269872e177a8e96 to your computer and use it in GitHub Desktop.
Save Ultra980/29082b620f38a4834269872e177a8e96 to your computer and use it in GitHub Desktop.
A nix flake file that can run a dioxus app. Enter the nix devshell with `nix develop` and run the app with `cargo r`.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem
(system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
with pkgs;
{
devShells.default = mkShell {
packages = [
gtk3.dev
libayatana-appindicator.dev
webkitgtk_4_1.dev
glib.dev
pango.dev
gdk-pixbuf.dev
cairo.dev
atkmm.dev
libsoup_3.dev
pkg-config
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment