File tree Expand file tree Collapse file tree 5 files changed +16
-15
lines changed
libguestfs-with-appliance Expand file tree Collapse file tree 5 files changed +16
-15
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ {
2+ libguestfs ,
3+ libguestfs-appliance ,
4+ } :
5+
6+ libguestfs . override {
7+ appliance = libguestfs-appliance ;
8+ }
File renamed without changes.
Original file line number Diff line number Diff line change 3333, jansson
3434, getopt
3535, perlPackages
36- , ocamlPackages
36+ , ocaml-ng
3737, libtirpc
3838, appliance ? null
3939, javaSupport ? false
4343
4444assert appliance == null || lib . isDerivation appliance ;
4545
46+ let
47+ # GetoptLong not avaible with newer ocaml
48+ ocamlPackages' = ocaml-ng . ocamlPackages_4_14 ;
49+ in
4650stdenv . mkDerivation rec {
4751 pname = "libguestfs" ;
4852 version = "1.50.1" ;
@@ -66,7 +70,7 @@ stdenv.mkDerivation rec {
6670 qemu
6771 zstd
6872 ] ++ ( with perlPackages ; [ perl libintl-perl GetoptLong ModuleBuild ] )
69- ++ ( with ocamlPackages ; [ ocaml findlib ] ) ;
73+ ++ ( with ocamlPackages' ; [ ocaml findlib ] ) ;
7074 buildInputs = [
7175 libxcrypt
7276 ncurses
@@ -91,15 +95,15 @@ stdenv.mkDerivation rec {
9195 libapparmor
9296 perlPackages . ModuleBuild
9397 libtirpc
94- ] ++ ( with ocamlPackages ; [ ocamlbuild ocaml_libvirt gettext-stub ounit ] )
98+ ] ++ ( with ocamlPackages' ; [ ocamlbuild ocaml_libvirt gettext-stub ounit ] )
9599 ++ lib . optional javaSupport jdk ;
96100
97101 prePatch = ''
98102 # build-time scripts
99103 substituteInPlace run.in --replace '#!/bin/bash' '#!${ stdenv . shell } '
100104 substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${ stdenv . shell } '
101105
102- # $(OCAMLLIB) is read-only "${ ocamlPackages . ocaml } /lib/ocaml"
106+ # $(OCAMLLIB) is read-only "${ ocamlPackages' . ocaml } /lib/ocaml"
103107 substituteInPlace ocaml/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
104108 substituteInPlace ocaml/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
105109
Original file line number Diff line number Diff line change @@ -21009,17 +21009,6 @@ with pkgs;
2100921009
2101021010 libgudev = callPackage ../development/libraries/libgudev { };
2101121011
21012- libguestfs-appliance = callPackage ../development/libraries/libguestfs/appliance.nix { };
21013- libguestfs = callPackage ../development/libraries/libguestfs {
21014- autoreconfHook = buildPackages.autoreconfHook264;
21015- ocamlPackages = ocaml-ng.ocamlPackages_4_14;
21016- };
21017- libguestfs-with-appliance = libguestfs.override {
21018- appliance = libguestfs-appliance;
21019- autoreconfHook = buildPackages.autoreconfHook264;
21020- };
21021-
21022-
2102321012 libhangul = callPackage ../development/libraries/libhangul { };
2102421013
2102521014 libharu = callPackage ../development/libraries/libharu { };
You can’t perform that action at this time.
0 commit comments