guestfs-tools: nixfmt

This commit is contained in:
wxt 2024-11-06 19:04:13 +08:00
parent 7d73149a1d
commit 09509e06cd
No known key found for this signature in database
GPG Key ID: F62181757D8BF693

View File

@ -1,31 +1,32 @@
{ lib {
, stdenv lib,
, fetchurl stdenv,
, bash-completion fetchurl,
, bison bash-completion,
, cdrkit bison,
, cpio cdrkit,
, curl cpio,
, flex curl,
, getopt flex,
, glib getopt,
, gnupg glib,
, hivex gnupg,
, jansson hivex,
, libguestfs-with-appliance jansson,
, libosinfo libguestfs-with-appliance,
, libvirt libosinfo,
, libxml2 libvirt,
, makeWrapper libxml2,
, ncurses makeWrapper,
, ocamlPackages ncurses,
, openssl ocamlPackages,
, pcre2 openssl,
, perlPackages pcre2,
, pkg-config perlPackages,
, qemu pkg-config,
, xz qemu,
, gitUpdater xz,
gitUpdater,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -37,28 +38,29 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU="; hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
}; };
nativeBuildInputs = [ nativeBuildInputs =
bison [
cdrkit bison
cpio cdrkit
flex cpio
getopt flex
makeWrapper getopt
pkg-config makeWrapper
qemu pkg-config
] ++ qemu
(with perlPackages; [ ]
GetoptLong ++ (with perlPackages; [
libintl-perl GetoptLong
ModuleBuild libintl-perl
perl ModuleBuild
Po4a perl
]) ++ Po4a
(with ocamlPackages; [ ])
findlib ++ (with ocamlPackages; [
ocaml findlib
ounit2 ocaml
]); ounit2
]);
buildInputs = [ buildInputs = [
bash-completion bash-completion
@ -100,10 +102,22 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = '' postInstall = ''
wrapProgram $out/bin/virt-builder \ wrapProgram $out/bin/virt-builder \
--argv0 virt-builder \ --argv0 virt-builder \
--prefix PATH : ${lib.makeBinPath [ curl gnupg ]}:$out/bin \ --prefix PATH : ${
lib.makeBinPath [
curl
gnupg
]
}:$out/bin \
--suffix VIRT_BUILDER_DIRS : /etc:$out/etc --suffix VIRT_BUILDER_DIRS : /etc:$out/etc
wrapProgram $out/bin/virt-win-reg \ wrapProgram $out/bin/virt-win-reg \
--prefix PERL5LIB : ${with perlPackages; makeFullPerlPath [ hivex libintl-perl libguestfs-with-appliance ]} --prefix PERL5LIB : ${
with perlPackages;
makeFullPerlPath [
hivex
libintl-perl
libguestfs-with-appliance
]
}
''; '';
passthru.updateScript = gitUpdater { passthru.updateScript = gitUpdater {
@ -114,7 +128,10 @@ stdenv.mkDerivation (finalAttrs: {
meta = { meta = {
description = "Extra tools for accessing and modifying virtual machine disk images"; description = "Extra tools for accessing and modifying virtual machine disk images";
license = with lib.licenses; [ gpl2Plus lgpl21Plus ]; license = with lib.licenses; [
gpl2Plus
lgpl21Plus
];
homepage = "https://libguestfs.org/"; homepage = "https://libguestfs.org/";
changelog = "https://www.libguestfs.org/guestfs-tools-release-notes-${lib.versions.majorMinor finalAttrs.version}.1.html"; changelog = "https://www.libguestfs.org/guestfs-tools-release-notes-${lib.versions.majorMinor finalAttrs.version}.1.html";
maintainers = [ ]; maintainers = [ ];