nixos-kexec-profile/default.nix

21 lines
549 B
Nix
Raw Normal View History

2023-10-31 15:23:46 +08:00
{ substituteAll, lib, coreutils, jq, kexec-tools, runtimeShell, installShellFiles, ... }: substituteAll {
name = "nixos-kexec-profile";
src = ./nixos-kexec-profile.sh;
dir = "bin";
isExecutable = true;
path = lib.makeBinPath [ coreutils jq kexec-tools ];
inherit runtimeShell;
nativeBuildInputs = [
installShellFiles
];
meta = {
description = "kexec into a NixOS profile";
homepage = "https://github.com/jeffguorg/nixos-kexec-profile";
licenses = lib.license.gpl;
mainProgram = "nixos-kexec-profile";
};
}