Skip to content

Instantly share code, notes, and snippets.

@FruitieX
Created January 10, 2022 07:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FruitieX/73afe3eb15da45e0e05d5c9cf5d318fc to your computer and use it in GitHub Desktop.
Save FruitieX/73afe3eb15da45e0e05d5c9cf5d318fc to your computer and use it in GitHub Desktop.
Fetches necessary dependencies for running Dioxus in desktop mode when using the Nix package manager
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/8c007b60731c07dd7a052cce508de3bb1ae849b4.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rustStableChannel = (nixpkgs.rustChannels.stable).rust.override {
extensions = [
"rust-src"
"rust-analysis"
"rustfmt-preview"
"clippy-preview"
];
targets = [
"x86_64-unknown-linux-gnu"
"wasm32-unknown-unknown"
];
};
in
with nixpkgs;
stdenv.mkDerivation {
name = "env";
buildInputs = [
rustStableChannel
pkg-config
openssl
glib
cairo
pango
atk
gdk-pixbuf
libsoup
gtk3
libappindicator
webkitgtk
];
}
@zoechi
Copy link

zoechi commented Jan 11, 2024

Nice. It seems there is currently no set of compatible dependencies with channel 23.11.
javascriptcoregtk-4.x caused issues. I tried with webkitgtk and webkitgtk_6_0 but both drag an incompatible version in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment