Unverified Commit 09509e06 authored by wxt's avatar wxt
Browse files

guestfs-tools: nixfmt

parent 7d73149a
Loading
Loading
Loading
Loading
+70 −53
Original line number Diff line number Diff line
{ 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,7 +38,8 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
  };

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      bison
      cdrkit
      cpio
@@ -46,15 +48,15 @@ stdenv.mkDerivation (finalAttrs: {
      makeWrapper
      pkg-config
      qemu
  ] ++
  (with perlPackages; [
    ]
    ++ (with perlPackages; [
      GetoptLong
      libintl-perl
      ModuleBuild
      perl
      Po4a
  ]) ++
  (with ocamlPackages; [
    ])
    ++ (with ocamlPackages; [
      findlib
      ocaml
      ounit2
@@ -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,7 +128,10 @@ 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 = [ ];