disko: 1.8.0 -> 1.8.2

This commit is contained in:
Felix Uhl 2024-10-11 21:56:05 +02:00
parent b69de56fac
commit 1cff750298

View File

@ -6,16 +6,17 @@
, nix
, nixos-install
, coreutils
, testers
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "disko";
version = "1.8.0";
version = "1.8.2";
src = fetchFromGitHub {
owner = "nix-community";
repo = "disko";
rev = "v${finalAttrs.version}";
hash = "sha256-5zShvCy9S4tuISFjNSjb+TWpPtORqPbRZ0XwbLbPLho=";
hash = "sha256-O0QVhsj9I/hmcIqJ4qCqFyzvjYL+dtzJP0C5MFd8O/Y=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash ];
@ -27,7 +28,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
for i in disko disko-install; do
sed -e "s|libexec_dir=\".*\"|libexec_dir=\"$out/share/disko\"|" "$i" > "$out/bin/$i"
chmod 755 "$out/bin/$i"
wrapProgram "$out/bin/$i" --prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install ]}
wrapProgram "$out/bin/$i" \
--set DISKO_VERSION "${finalAttrs.version}" \
--prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install ]}
done
runHook postInstall
'';
@ -38,6 +41,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
$out/bin/disko-install --help
runHook postInstallCheck
'';
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
meta = {
homepage = "https://github.com/nix-community/disko";
description = "Declarative disk partitioning and formatting using nix";