libguestfs: move to by-name

authored by lukts30 and committed by Bjørn Forsman 2612971b 3483fc9b

+16 -15
+8
pkgs/by-name/li/libguestfs-with-appliance/package.nix
··· 1 + { 2 + libguestfs, 3 + libguestfs-appliance, 4 + }: 5 + 6 + libguestfs.override { 7 + appliance = libguestfs-appliance; 8 + }
pkgs/development/libraries/libguestfs/appliance.nix pkgs/by-name/li/libguestfs-appliance/package.nix
+8 -4
pkgs/development/libraries/libguestfs/default.nix pkgs/by-name/li/libguestfs/package.nix
··· 33 33 , jansson 34 34 , getopt 35 35 , perlPackages 36 - , ocamlPackages 36 + , ocaml-ng 37 37 , libtirpc 38 38 , appliance ? null 39 39 , javaSupport ? false ··· 43 43 44 44 assert appliance == null || lib.isDerivation appliance; 45 45 46 + let 47 + # GetoptLong not avaible with newer ocaml 48 + ocamlPackages' = ocaml-ng.ocamlPackages_4_14; 49 + in 46 50 stdenv.mkDerivation rec { 47 51 pname = "libguestfs"; 48 52 version = "1.50.1"; ··· 66 70 qemu 67 71 zstd 68 72 ] ++ (with perlPackages; [ perl libintl-perl GetoptLong ModuleBuild ]) 69 - ++ (with ocamlPackages; [ ocaml findlib ]); 73 + ++ (with ocamlPackages'; [ ocaml findlib ]); 70 74 buildInputs = [ 71 75 libxcrypt 72 76 ncurses ··· 91 95 libapparmor 92 96 perlPackages.ModuleBuild 93 97 libtirpc 94 - ] ++ (with ocamlPackages; [ ocamlbuild ocaml_libvirt gettext-stub ounit ]) 98 + ] ++ (with ocamlPackages'; [ ocamlbuild ocaml_libvirt gettext-stub ounit ]) 95 99 ++ lib.optional javaSupport jdk; 96 100 97 101 prePatch = '' ··· 99 103 substituteInPlace run.in --replace '#!/bin/bash' '#!${stdenv.shell}' 100 104 substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}' 101 105 102 - # $(OCAMLLIB) is read-only "${ocamlPackages.ocaml}/lib/ocaml" 106 + # $(OCAMLLIB) is read-only "${ocamlPackages'.ocaml}/lib/ocaml" 103 107 substituteInPlace ocaml/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' 104 108 substituteInPlace ocaml/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' 105 109
pkgs/development/libraries/libguestfs/libguestfs-syms.patch pkgs/by-name/li/libguestfs/libguestfs-syms.patch
-11
pkgs/top-level/all-packages.nix
··· 21009 21009 21010 21010 libgudev = callPackage ../development/libraries/libgudev { }; 21011 21011 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 - 21023 21012 libhangul = callPackage ../development/libraries/libhangul { }; 21024 21013 21025 21014 libharu = callPackage ../development/libraries/libharu { };