mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-24 05:46:17 +03:00
40 lines
891 B
Nix
40 lines
891 B
Nix
let
|
|
nixpkgs = builtins.fetchGit {
|
|
name = "nixos-23.11";
|
|
url = "https://github.com/nixos/nixpkgs";
|
|
ref = "refs/heads/nixos-23.11";
|
|
};
|
|
|
|
nixpkgs-unstable = builtins.fetchGit {
|
|
name = "nixos-unstable";
|
|
url = "https://github.com/nixos/nixpkgs";
|
|
ref = "refs/heads/nixos-unstable";
|
|
};
|
|
|
|
pkgs = import nixpkgs {};
|
|
pkgs-unstable = import nixpkgs-unstable {};
|
|
|
|
in pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
pkgs-unstable.rustc
|
|
pkgs-unstable.rustfmt
|
|
pkgs-unstable.cargo
|
|
pkgs-unstable.clippy
|
|
|
|
gcc
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
gtk4
|
|
glib
|
|
gdk-pixbuf
|
|
gobject-introspection
|
|
|
|
libadwaita
|
|
];
|
|
|
|
RUST_SRC_PATH = "${pkgs-unstable.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
RUST_BACKTRACE = 1;
|
|
}
|