dnf5: update version check, provide home dir
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
sphinx,
|
||||
sqlite,
|
||||
systemd,
|
||||
testers,
|
||||
versionCheckHook,
|
||||
toml11,
|
||||
zchunk,
|
||||
nix-update-script,
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dnf5";
|
||||
version = "5.2.17.0";
|
||||
version = "5.2.16.0";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "rpm-software-management";
|
||||
repo = "dnf5";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-bVXmpoM2ymLgqjv8+3syYhkIKSyW68eKzKhUWRfR1vY=";
|
||||
hash = "sha256-k71UKcKF5IdK96Q3TnAwFGoTRYmTlSO2kkPD54Bd9s8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -115,10 +115,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
dontFixCmake = true;
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
preVersionCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Next-generation RPM package management system";
|
||||
|
||||
Reference in New Issue
Block a user