A template for GTK4 projects in Rust.
- gtk4
Create default.nix
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
pkg-config cairo atk gio-sharp gtk4 gdk-pixbuf pango
];
}
Then build with cargo
nix-shell . --command "cargo build"