This repository was archived by the owner on Aug 23, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 - name : Build libvhdi
3232 run : nix build .#libvhdi -L
3333
34- - name : Test binary execution
35- run : |
36- ./result/bin/vhdiinfo --version
37- ./result/bin/vhdimount --version
38-
3934 checks :
4035 runs-on : ubuntu-latest
4136
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636### Technical Details
3737- libvhdi version: 20240509
3838- Supports VHD and VHDX formats
39- - Includes vhdiinfo, vhdimount, and vhdiexport tools
39+ - Includes vhdiinfo and vhdimount tools
4040- FUSE2 and FUSE3 support
4141
4242### Notes
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ Current release: `20251119`
1111libvhdi provides:
1212- ** vhdiinfo** : Display information about VHD/VHDX files
1313- ** vhdimount** : FUSE-based tool to mount VHD/VHDX as a filesystem
14- - ** vhdiexport** : Export VHD data to raw format
15-
1614This package supports both VHD (Virtual Hard Disk) and VHDX (Virtual Hard Disk v2) formats.
1715
1816## Usage
@@ -98,9 +96,8 @@ nix flake check
9896nix build .# libvhdi
9997
10098# Test utilities
101- ./result/bin/vhdiinfo --version
102- ./result/bin/vhdimount --version
103- ./result/bin/vhdiexport --version
99+ ./result/bin/vhdiinfo -V
100+ ./result/bin/vhdimount -V
104101```
105102
106103## Architecture
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
22# libvhdi Package - Library and tools to access Virtual Hard Disk (VHD) image format
3- # Provides vhdimount (FUSE-based VHD mounter), vhdiinfo, and vhdiexport utilities.
3+ # Provides vhdimount (FUSE-based VHD mounter) and vhdiinfo utilities.
44#
55# This file is structured for nixpkgs submission.
66# When submitting to nixpkgs, it will be placed at:
@@ -51,6 +51,7 @@ stdenv.mkDerivation {
5151 ] ;
5252
5353 enableParallelBuilding = true ;
54+ doInstallCheck = true ;
5455
5556 postInstall = ''
5657 # Verify the library and tools were built
@@ -73,13 +74,21 @@ stdenv.mkDerivation {
7374 ls -la "$out/bin/"
7475 '' ;
7576
77+ installCheckPhase = ''
78+ runHook preInstallCheck
79+
80+ "$out/bin/vhdiinfo" -V
81+ "$out/bin/vhdimount" -V
82+
83+ runHook postInstallCheck
84+ '' ;
85+
7686 meta = with lib ; {
7787 description = "Library and tools to access the Virtual Hard Disk (VHD) image format" ;
7888 longDescription = ''
7989 libvhdi provides:
8090 - vhdiinfo: Display information about VHD/VHDX files
8191 - vhdimount: FUSE-based tool to mount VHD/VHDX as a filesystem
82- - vhdiexport: Export VHD data to raw format
8392
8493 Used by Xen Orchestra for backup restore and disk inspection operations.
8594 This package supports both VHD (Virtual Hard Disk) and VHDX (Virtual Hard Disk v2) formats.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ nix develop
1515
1616``` bash
1717nix build .# libvhdi
18- ./result/bin/vhdiinfo --version
18+ ./result/bin/vhdiinfo -V
1919```
2020
2121### Compatibility Alias Build
@@ -42,8 +42,8 @@ nix build .#libvhdi-test
4242``` bash
4343nix flake check
4444nix build .# libvhdi
45- ./result/bin/vhdiinfo --version
46- ./result/bin/vhdimount --version
45+ ./result/bin/vhdiinfo -V
46+ ./result/bin/vhdimount -V
4747```
4848
4949## Release Process
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ Add libvhdi package - Library and tools to access VHD/VHDX image formats.
121121Provides:
122122- vhdiinfo: Display VHD/VHDX information
123123- vhdimount: FUSE-based VHD/VHDX mounter
124- - vhdiexport: Export VHD to raw format
125124
126125### Things Done
127126
You can’t perform that action at this time.
0 commit comments