aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 2059ac7..8cc182a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,6 +10,11 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
+
+ clef = {
+ url = "https://pub.npry.dev/clef";
+ flake = false;
+ };
};
description = "tiny kite-borne sensor node";
@@ -66,21 +71,28 @@
];
};
- mkPackages = pkgs: pkgs.callPackages ./nix {};
+ mkPkg = pkgs: pkgs.callPackage ./nix {
+ name = "ocularium";
+
+ src = ./.;
+
+ main_pcb = "okm.kicad_pcb";
+ main_sch = "okm.kicad_sch";
+
+ layers = 4;
+
+ outPath = "share/npry/ocularium";
+ };
in (flake-utils.lib.eachDefaultSystem (system:
let
pkgs = mkPkgs system;
- packages = mkPackages pkgs;
-
- full_package = (pkgs.emptyFile).overrideAttrs ({
- passthru = packages;
- });
+ pkg = mkPkg pkgs;
in {
packages = {
- default = full_package;
- ocularium = full_package;
+ default = pkg;
+ ocularium = pkg;
};
devShells.default = pkgs.mkShell {