air-quality-monitor/flake.nix

24 lines
603 B
Nix
Raw Normal View History

2023-11-28 17:35:38 +00:00
{
description = "An air quality monitoring service with a Raspberry Pi and a SDS011 sensor.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = {
self,
nixpkgs,
}: let
2023-11-28 17:45:18 +00:00
systems = ["aarch64-linux" "x86_64-linux"];
2023-11-28 17:35:38 +00:00
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;
};
}