feat: project 3

This commit is contained in:
Kiana Sheibani 2025-12-04 17:37:19 -05:00
parent 8f4463782c
commit b9a362d490
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
15 changed files with 5425 additions and 15 deletions

View file

@ -4,9 +4,13 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
crane.url = "github:ipetkov/crane";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, systems, ... }:
outputs = inputs@{ self, nixpkgs, systems, crane, fenix, ... }:
let
subdirs = [
"assignment1"
@ -14,6 +18,7 @@
"assignment3"
"project1"
"project2"
"project3"
];
eachSystem = nixpkgs.lib.genAttrs (import systems);
@ -23,7 +28,7 @@
in pkgs.lib.mergeAttrsList
(builtins.map (d:
builtins.mapAttrs
(_: v: pkgs.callPackage v {})
(_: v: pkgs.callPackage v { inherit inputs; })
(import ./${d}/${file}))
subdirs));
in {
@ -33,7 +38,7 @@
devShells = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.callPackage ./shell.nix {};
default = import ./shell.nix { inherit pkgs crane fenix; };
});
};
}