guestfs-tools: avoid building on hydra (#353995)

This commit is contained in:
Weijia Wang 2024-11-07 01:53:29 +01:00 committed by GitHub
commit c624dba1dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 71 additions and 55 deletions

View File

@ -1,31 +1,32 @@
{ lib
, stdenv
, fetchurl
, bash-completion
, bison
, cdrkit
, cpio
, curl
, flex
, getopt
, glib
, gnupg
, hivex
, jansson
, libguestfs-with-appliance
, libosinfo
, libvirt
, libxml2
, makeWrapper
, ncurses
, ocamlPackages
, openssl
, pcre2
, perlPackages
, pkg-config
, qemu
, xz
, gitUpdater
{
lib,
stdenv,
fetchurl,
bash-completion,
bison,
cdrkit,
cpio,
curl,
flex,
getopt,
glib,
gnupg,
hivex,
jansson,
libguestfs-with-appliance,
libosinfo,
libvirt,
libxml2,
makeWrapper,
ncurses,
ocamlPackages,
openssl,
pcre2,
perlPackages,
pkg-config,
qemu,
xz,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
@ -37,28 +38,29 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
};
nativeBuildInputs = [
bison
cdrkit
cpio
flex
getopt
makeWrapper
pkg-config
qemu
] ++
(with perlPackages; [
GetoptLong
libintl-perl
ModuleBuild
perl
Po4a
]) ++
(with ocamlPackages; [
findlib
ocaml
ounit2
]);
nativeBuildInputs =
[
bison
cdrkit
cpio
flex
getopt
makeWrapper
pkg-config
qemu
]
++ (with perlPackages; [
GetoptLong
libintl-perl
ModuleBuild
perl
Po4a
])
++ (with ocamlPackages; [
findlib
ocaml
ounit2
]);
buildInputs = [
bash-completion
@ -100,10 +102,22 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
wrapProgram $out/bin/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
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 {
@ -114,10 +128,14 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
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/";
changelog = "https://www.libguestfs.org/guestfs-tools-release-notes-${lib.versions.majorMinor finalAttrs.version}.1.html";
maintainers = [ ];
platforms = lib.platforms.linux;
hydraPlatforms = [ ];
};
})

View File

@ -1756,8 +1756,6 @@ with pkgs;
grizzly = callPackage ../tools/misc/grizzly { };
guestfs-tools = callPackage ../tools/virtualization/guestfs-tools { };
fabs = callPackage ../tools/backup/fabs { };
fm = callPackage ../applications/file-managers/fm { };