blob: 9bea19d61c1209dd3eabe1ef3f1ec94860d03cbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ config, pkgs, lib, ... }:
with builtins // lib;
let
cfg = config.build.koboroot;
in {
options.build = {
koboroot = {
unpacked-payload = mkOption {
type = types.path;
internal = true;
readOnly = true;
default = config.koboroot.finalPackage;
};
payload = mkOption {
type = types.path;
internal = true;
readOnly = true;
default = pkgs.runCommandLocal "koboroot-payload" {} ''
mkdir $out
tar czvf $out/KoboRoot.tgz --directory="${cfg.unpacked-payload}" . --mode=u+w
'';
};
deploy = mkOption {
internal = true;
readOnly = true;
type = types.package;
default = pkgs.kobo-deploy cfg.payload;
};
};
};
}
|