Add package output to flake

This commit is contained in:
2026-03-16 12:59:54 +01:00
parent 055ba54853
commit 553ae724fc

View File

@@ -16,6 +16,33 @@
pkgsFor = system: nixpkgs.legacyPackages.${system};
in
{
packages = forAllSystems (
system:
let
pkgs = pkgsFor system;
in
{
default = pkgs.rustPlatform.buildRustPackage {
pname = "ambiligth";
version = "0.1.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [
dbus
gtk3
glib
atk
pango
cairo
gdk-pixbuf
libappindicator-gtk3
libayatana-appindicator
];
};
}
);
devShells = forAllSystems (
system:
let