mirror of
https://github.com/NotAShelf/air-quality-monitor.git
synced 2024-11-01 19:41:18 +00:00
24 lines
603 B
Nix
24 lines
603 B
Nix
{
|
|
description = "An air quality monitoring service with a Raspberry Pi and a SDS011 sensor.";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
}: let
|
|
systems = ["aarch64-linux" "x86_64-linux"];
|
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
|
pkgsForEach = nixpkgs.legacyPackages;
|
|
in rec {
|
|
packages = forEachSystem (system: {
|
|
default = pkgsForEach.${system}.callPackage ./nix {};
|
|
});
|
|
|
|
devShells = forEachSystem (system: {
|
|
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
|
|
});
|
|
|
|
hydraJobs = packages;
|
|
};
|
|
}
|