mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
guestfs-tools: init at 1.48.2
This commit is contained in:
parent
c9f0cb9bb8
commit
023d57eae7
87
pkgs/tools/virtualization/guestfs-tools/default.nix
Normal file
87
pkgs/tools/virtualization/guestfs-tools/default.nix
Normal file
@ -0,0 +1,87 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, bison
|
||||
, cdrkit
|
||||
, cpio
|
||||
, flex
|
||||
, getopt
|
||||
, hivex
|
||||
, jansson
|
||||
, libguestfs
|
||||
, libvirt
|
||||
, libxml2
|
||||
, makeWrapper
|
||||
, ncurses
|
||||
, ocamlPackages
|
||||
, pcre2
|
||||
, perlPackages
|
||||
, pkg-config
|
||||
, qemu
|
||||
, xz
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "guestfs-tools";
|
||||
version = "1.48.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.libguestfs.org/guestfs-tools/${lib.versions.majorMinor version}-stable/guestfs-tools-${version}.tar.gz";
|
||||
sha256 = "sha256-G9l5sG5g5kMlSXzg0GX8+Et7M9/k2dRLMBgsMI4MaxA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
cdrkit
|
||||
cpio
|
||||
flex
|
||||
getopt
|
||||
makeWrapper
|
||||
pkg-config
|
||||
qemu
|
||||
] ++
|
||||
(with perlPackages; [
|
||||
GetoptLong
|
||||
libintl-perl
|
||||
ModuleBuild
|
||||
perl
|
||||
Po4a
|
||||
]) ++
|
||||
(with ocamlPackages; [
|
||||
findlib
|
||||
gettext-stub
|
||||
ocaml
|
||||
ocaml_gettext
|
||||
ounit2
|
||||
]);
|
||||
|
||||
buildInputs = [
|
||||
hivex
|
||||
jansson
|
||||
libguestfs
|
||||
libvirt
|
||||
libxml2
|
||||
ncurses
|
||||
pcre2
|
||||
xz
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/virt-win-reg \
|
||||
--prefix PERL5LIB : ${with perlPackages; makeFullPerlPath [ hivex libintl-perl libguestfs ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extra tools for accessing and modifying virtual machine disk images";
|
||||
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
||||
homepage = "https://libguestfs.org/";
|
||||
maintainers = with maintainers; [ thiagokokada ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -1317,6 +1317,8 @@ with pkgs;
|
||||
|
||||
godspeed = callPackage ../tools/networking/godspeed { };
|
||||
|
||||
guestfs-tools = callPackage ../tools/virtualization/guestfs-tools { };
|
||||
|
||||
fwbuilder = libsForQt5.callPackage ../tools/security/fwbuilder { };
|
||||
|
||||
headsetcontrol = callPackage ../tools/audio/headsetcontrol { };
|
||||
|
Loading…
Reference in New Issue
Block a user