-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
54 lines (50 loc) · 1.1 KB
/
package.nix
File metadata and controls
54 lines (50 loc) · 1.1 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
lib,
# build environment helpers
replaceVarsWith,
installShellFiles,
# script dependencies
bash,
disko,
fzf,
nix,
nixos-rebuild,
nix-output-monitor,
python3Minimal,
smartmontools,
util-linux,
}:
let
inherit (lib.strings) makeBinPath;
inherit (lib.meta) getExe;
name = "disko-install-menu";
in
replaceVarsWith {
inherit name;
src = ./setup.py;
dir = "bin";
isExecutable = true;
# referred to by ./setup.py via @<var>@ notation
replacements = {
inherit name;
runtimePython = getExe python3Minimal;
path = makeBinPath [
bash
disko # for disko-install
fzf
nix
nixos-rebuild
nix-output-monitor
python3Minimal
smartmontools # for smartctl
util-linux # for lsblk, fdisk
];
hostPreviewNix = "${./support/host-preview.nix}";
};
nativeBuildInputs = [ installShellFiles ];
meta = {
description = "Interactive installation menu for disko flake configurations";
license = lib.licenses.mit; # SPDX-License-Identifier: MIT (so tools can find this reference)
mainProgram = "disko-install-menu";
};
}