libguestfs: remove unnecessary ? null from inputs
This commit is contained in:
parent
ceee02670c
commit
e3fb23dc8c
1 changed files with 5 additions and 6 deletions
|
@ -35,13 +35,12 @@
|
|||
, perlPackages
|
||||
, ocamlPackages
|
||||
, libtirpc
|
||||
, appliance ? null
|
||||
, withAppliance ? true
|
||||
, appliance
|
||||
, javaSupport ? false
|
||||
, jdk
|
||||
}:
|
||||
|
||||
assert appliance == null || lib.isDerivation appliance;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libguestfs";
|
||||
version = "1.48.4";
|
||||
|
@ -128,13 +127,13 @@ stdenv.mkDerivation rec {
|
|||
done
|
||||
'';
|
||||
|
||||
postFixup = lib.optionalString (appliance != null) ''
|
||||
postFixup = lib.optionalString withAppliance ''
|
||||
mkdir -p $out/{lib,lib64}
|
||||
ln -s ${appliance} $out/lib64/guestfs
|
||||
ln -s ${appliance} $out/lib/guestfs
|
||||
'';
|
||||
|
||||
doInstallCheck = appliance != null;
|
||||
doInstallCheck = withAppliance;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
|
@ -161,6 +160,6 @@ stdenv.mkDerivation rec {
|
|||
maintainers = with maintainers; [ offline ];
|
||||
platforms = platforms.linux;
|
||||
# this is to avoid "output size exceeded"
|
||||
hydraPlatforms = if appliance != null then appliance.meta.hydraPlatforms else platforms.linux;
|
||||
hydraPlatforms = if withAppliance then appliance.meta.hydraPlatforms else platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue