feat: project 3
This commit is contained in:
parent
8f4463782c
commit
b9a362d490
15 changed files with 5425 additions and 15 deletions
11
flake.nix
11
flake.nix
|
|
@ -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; };
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue