cosmic-settings/flake.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2023-06-26 12:22:58 -04:00
{
description = "Settings application for the COSMIC desktop environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
2023-06-26 12:22:58 -04:00
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
2023-06-26 12:22:58 -04:00
let
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
];
2023-06-26 12:22:58 -04:00
buildInputs = with pkgs; [
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
libpulseaudio.dev
pipewire.dev
2023-06-26 12:22:58 -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
};
}
);
2023-06-26 12:22:58 -04:00
}