Assignment-7-sgximpl #13
1 changed files with 26 additions and 29 deletions
13
flake.nix
13
flake.nix
|
@ -16,7 +16,7 @@
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
] (system: function {
|
] (system: function {
|
||||||
inherit system;
|
inherit system;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
||||||
});
|
});
|
||||||
|
|
||||||
forAllAssignments = function:
|
forAllAssignments = function:
|
||||||
|
@ -28,10 +28,9 @@
|
||||||
|
|
||||||
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
||||||
version = builtins.substring 0 8 lastModifiedDate;
|
version = builtins.substring 0 8 lastModifiedDate;
|
||||||
|
|
||||||
nixpkgsFor = system: import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
|
||||||
in rec {
|
in rec {
|
||||||
packages = forAllSystems({system, pkgs}: forAllAssignments(assignment: let
|
packages =
|
||||||
|
forAllSystems({system, pkgs}: forAllAssignments(assignment: let
|
||||||
tex = texPackages pkgs;
|
tex = texPackages pkgs;
|
||||||
document = pkgs.stdenvNoCC.mkDerivation rec {
|
document = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = assignment;
|
name = assignment;
|
||||||
|
@ -53,9 +52,8 @@
|
||||||
};
|
};
|
||||||
in document) // {
|
in document) // {
|
||||||
default = packages.${system}.${pkgs.lib.last assignments};
|
default = packages.${system}.${pkgs.lib.last assignments};
|
||||||
}) // {
|
"Assignment 7" = pkgs.signatureProxy;
|
||||||
"x86_64-linux"."Assignment 7" = (nixpkgsFor "x86_64-linux").signatureProxy;
|
});
|
||||||
};
|
|
||||||
|
|
||||||
devShells = forAllSystems({pkgs, ...}: let
|
devShells = forAllSystems({pkgs, ...}: let
|
||||||
tex = texPackages pkgs;
|
tex = texPackages pkgs;
|
||||||
|
@ -98,7 +96,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hydraJobs = packages;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue