mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
load database with checksum again but do the same in disko-install
This commit is contained in:
1 parent
8a4585a200
commit
cdefe26742
7 files changed
+48
-60
No files matched your search
+17
-5
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user