blob: 6e34706d3f83e544c4cafc82abb90e68e1152cd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# writeDeploy of krops' flake, with the arguments args, given krops' and
# nixpkgs' sources: what the flake ./pure.nix makes evaluates purely, and
# what the host builds. nixpkgs is a flake with lib and legacyPackages,
# without nixpkgs' configuration and overlays, which differ between the
# two, and which pure evaluation can't read anyway.
{ krops, nixpkgs, system, args }:
let
nixpkgs' = {
lib = import "${nixpkgs}/lib";
legacyPackages.${system} = import nixpkgs {
inherit system;
config = {};
overlays = [];
};
};
kropsFlake = (import "${krops}/flake.nix").outputs {
self = kropsFlake;
nixpkgs = nixpkgs';
};
in
kropsFlake.lib.${system}.writeDeploy "deploy" args
|