guestfs-tools: nixfmt
This commit is contained in:
parent
7d73149a1d
commit
09509e06cd
@ -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,7 +38,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
|
hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs =
|
||||||
|
[
|
||||||
bison
|
bison
|
||||||
cdrkit
|
cdrkit
|
||||||
cpio
|
cpio
|
||||||
@ -46,15 +48,15 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
makeWrapper
|
makeWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
qemu
|
qemu
|
||||||
] ++
|
]
|
||||||
(with perlPackages; [
|
++ (with perlPackages; [
|
||||||
GetoptLong
|
GetoptLong
|
||||||
libintl-perl
|
libintl-perl
|
||||||
ModuleBuild
|
ModuleBuild
|
||||||
perl
|
perl
|
||||||
Po4a
|
Po4a
|
||||||
]) ++
|
])
|
||||||
(with ocamlPackages; [
|
++ (with ocamlPackages; [
|
||||||
findlib
|
findlib
|
||||||
ocaml
|
ocaml
|
||||||
ounit2
|
ounit2
|
||||||
@ -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 = [ ];
|
||||||
|
Loading…
Reference in New Issue
Block a user