load database with checksum again but do the same in disko-install

This commit is contained in:
Jörg Thalheim committed 2024-05-07 08:53:10 +02:00
1 parent 8a4585a200
commit cdefe26742
7 files changed
+48 -60

No files matched your search

+17 -5
View File
@@ -1,11 +1,16 @@
{ stdenvNoCC, makeWrapper, lib }:
{
stdenvNoCC,
makeWrapper,
lib,
coreutils,
xcp,
nixos-install-tools,
}:
stdenvNoCC.mkDerivation {
name = "disko-install";
src = ./.;
nativeBuildInputs = [
makeWrapper
];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin $out/share/disko
cp -r install-cli.nix $out/share/disko
@@ -14,7 +19,14 @@ stdenvNoCC.mkDerivation {
-e "s|#!/usr/bin/env.*|#!/usr/bin/env bash|" \
disko-install > $out/bin/disko-install
chmod 755 $out/bin/disko-install
wrapProgram $out/bin/disko-install
wrapProgram $out/bin/disko-install \
--prefix PATH : "${
lib.makeBinPath [
coreutils
xcp
nixos-install-tools
]
}"
'';
meta = with lib; {
description = "Disko and nixos-install in one command";