doggo/flake.nix

52 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-04-05 00:19:18 +02:00
{
description = "Doggo flake";
2024-04-05 23:57:47 +02:00
2024-04-05 00:19:18 +02:00
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, fenix, nixpkgs }:
2024-04-05 23:57:47 +02:00
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux = with pkgs;
2024-04-16 13:54:48 +02:00
mkShell rec {
2024-04-05 23:57:47 +02:00
nativeBuildInputs = [
just
pkg-config
protobuf
(fenix.packages.x86_64-linux.fromToolchainFile {
dir = ./.;
2024-04-13 20:32:49 +02:00
sha256 = "sha256-7QfkHty6hSrgNM0fspycYkRcB82eEqYa4CoAJ9qA3tU= ";
2024-04-05 23:57:47 +02:00
})
2024-04-16 13:54:48 +02:00
fenix.packages.x86_64-linux.rust-analyzer
2024-04-05 23:57:47 +02:00
];
2024-04-05 00:19:18 +02:00
2024-04-05 23:57:47 +02:00
buildInputs = [
fontconfig
2024-04-16 13:54:48 +02:00
vulkan-headers
2024-04-05 23:57:47 +02:00
vulkan-loader
2024-04-16 13:54:48 +02:00
libGL
2024-04-05 23:57:47 +02:00
libxkbcommon
2024-04-16 13:54:48 +02:00
2024-04-05 23:57:47 +02:00
wayland
2024-04-22 14:09:31 +02:00
# rfd
gtk3
2024-04-05 23:57:47 +02:00
];
2024-04-05 00:19:18 +02:00
2024-04-05 23:57:47 +02:00
env = {
2024-04-16 13:54:48 +02:00
# WAYLAND_DISPLAY = ""; # Window has nor decoration on Wayland
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath buildInputs;
2024-04-05 23:57:47 +02:00
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
};
2024-04-05 00:19:18 +02:00
}