Skip to content

Commit 2612971

Browse files
lukts30bjornfor
authored andcommitted
libguestfs: move to by-name
1 parent 3483fc9 commit 2612971

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
libguestfs,
3+
libguestfs-appliance,
4+
}:
5+
6+
libguestfs.override {
7+
appliance = libguestfs-appliance;
8+
}

pkgs/development/libraries/libguestfs/libguestfs-syms.patch renamed to pkgs/by-name/li/libguestfs/libguestfs-syms.patch

File renamed without changes.

pkgs/development/libraries/libguestfs/default.nix renamed to pkgs/by-name/li/libguestfs/package.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
, jansson
3434
, getopt
3535
, perlPackages
36-
, ocamlPackages
36+
, ocaml-ng
3737
, libtirpc
3838
, appliance ? null
3939
, javaSupport ? false
@@ -43,6 +43,10 @@
4343

4444
assert appliance == null || lib.isDerivation appliance;
4545

46+
let
47+
# GetoptLong not avaible with newer ocaml
48+
ocamlPackages' = ocaml-ng.ocamlPackages_4_14;
49+
in
4650
stdenv.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

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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 { };

0 commit comments

Comments
 (0)