2023-06-26 12:22:58 -04:00
|
|
|
{
|
|
|
|
|
description = "Settings application for the COSMIC desktop environment";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2025-05-28 08:01:24 -04:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
2023-06-26 12:22:58 -04:00
|
|
|
};
|
|
|
|
|
|
2025-05-28 08:01:24 -04:00
|
|
|
outputs = { self, nixpkgs, utils }:
|
|
|
|
|
utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
|
2023-06-26 12:22:58 -04:00
|
|
|
let
|
2025-05-28 08:01:24 -04:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = with pkgs; [
|
|
|
|
|
wayland
|
|
|
|
|
# libglvnd # For libEGL
|
|
|
|
|
vulkan-loader
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
devShells.default = with pkgs; mkShell rec {
|
2023-06-26 12:22:58 -04:00
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
|
just
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
2025-05-28 08:01:24 -04:00
|
|
|
|
2023-06-26 12:22:58 -04:00
|
|
|
buildInputs = with pkgs; [
|
2025-05-28 08:01:24 -04:00
|
|
|
clang
|
|
|
|
|
cargo
|
|
|
|
|
rustc
|
|
|
|
|
rustfmt
|
2023-09-07 11:52:40 -04:00
|
|
|
systemdMinimal
|
2023-09-11 17:15:59 -04:00
|
|
|
bashInteractive
|
2023-06-26 12:22:58 -04:00
|
|
|
libxkbcommon
|
|
|
|
|
freetype
|
|
|
|
|
fontconfig
|
|
|
|
|
expat
|
|
|
|
|
lld
|
|
|
|
|
desktop-file-utils
|
|
|
|
|
stdenv.cc.cc.lib
|
2023-09-07 11:52:40 -04:00
|
|
|
libinput
|
2025-05-28 08:01:24 -04:00
|
|
|
libpulseaudio.dev
|
|
|
|
|
pipewire.dev
|
2023-06-26 12:22:58 -04:00
|
|
|
];
|
|
|
|
|
|
2025-05-28 08:01:24 -04:00
|
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
|
|
|
|
RUSTFLAGS = "-C link-arg=-Wl,-rpath,${pkgs.lib.makeLibraryPath runtimeDependencies}";
|
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
2023-06-26 12:22:58 -04:00
|
|
|
};
|
2025-05-28 08:01:24 -04:00
|
|
|
}
|
|
|
|
|
);
|
2023-06-26 12:22:58 -04:00
|
|
|
}
|