Created
December 8, 2023 20:00
-
-
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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