-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.nix
32 lines (23 loc) · 797 Bytes
/
build.nix
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
32
let
pkgsMake = import ../../pkgs-make;
pkgsMakeArgs = {};
in
pkgsMake pkgsMakeArgs ({call, lib}: rec {
example-shell-lib = call.package ./library;
example-shell-app = call.package ./application;
example-shell-app-unwrapped = call.package ./application-unwrapped;
example-shell-app-wrapped = call.package ./application-wrapped;
example-shell-docker = lib.nix.dockerTools.buildImage {
name = "example-shell";
tag = "latest";
contents = example-shell-app;
config = {
Entrypoint = [ "/bin/example-shell" ];
};
};
example-shell-tarball =
lib.nix.tarball example-shell-app "example-shell.tar";
example-shell-licenses = lib.nix.license-report.json {
inherit example-shell-app;
};
})