Skip to content

Commit

Permalink
build: added shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
krypt0nn committed May 20, 2024
1 parent e2bac13 commit b641c3b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
let
nixpkgs-unstable = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz";

pkgs = import <nixpkgs> {};
pkgs-unstable = import nixpkgs-unstable {};

in

pkgs.mkShell {
nativeBuildInputs = [
pkgs-unstable.rustc
pkgs-unstable.cargo
pkgs-unstable.clippy

pkgs.gcc
pkgs.cmake
pkgs.pkg-config
];

buildInputs = [
pkgs.gtk4
pkgs.glib
pkgs.gdk-pixbuf
pkgs.gobject-introspection

pkgs.libadwaita
];

RUST_SRC_PATH = "${pkgs-unstable.rust.packages.stable.rustPlatform.rustLibSrc}";
RUST_BACKTRACE = 1;
}

0 comments on commit b641c3b

Please sign in to comment.