From 797898a45561e69a5830d1f29391f08da53bb6dd Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 23 Apr 2022 10:00:09 +0800 Subject: [PATCH] packagekit: fix build with Nix 2.8 https://github.com/PackageKit/PackageKit/compare/33b847c...30bb82d --- pkgs/tools/package-management/packagekit/default.nix | 12 ++---------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/package-management/packagekit/default.nix b/pkgs/tools/package-management/packagekit/default.nix index 15f94aceaa4e7..66064139f3800 100644 --- a/pkgs/tools/package-management/packagekit/default.nix +++ b/pkgs/tools/package-management/packagekit/default.nix @@ -11,7 +11,6 @@ , vala , gtk-doc , nix -, nlohmann_json ? null , boost , meson , ninja @@ -27,12 +26,6 @@ , enableSystemd ? stdenv.isLinux , systemd }: -let - nix_version = lib.removeSuffix nix.VERSION_SUFFIX nix.version; - useNlohmann = lib.versionAtLeast "2.7" nix_version; -in - -assert useNlohmann -> nlohmann_json != null; stdenv.mkDerivation rec { pname = "packagekit"; @@ -43,8 +36,8 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "PackageKit"; repo = "PackageKit"; - rev = "33b847c49b4a42499e3c0f10fef62830c874e086"; - sha256 = "UDpMswf0EBwcoHTqoWiztXnIAwM69nM+S9MPsR24amw="; + rev = "30bb82da8d4161330a6d7a20c9989149303421a1"; + sha256 = "k2osc2v0OuGrNjwxdqn785RsbHEJP3p79PG9YqnVE3U="; }; buildInputs = [ @@ -59,7 +52,6 @@ stdenv.mkDerivation rec { nix boost ] ++ lib.optional enableSystemd systemd - ++ lib.optional useNlohmann nlohmann_json ++ lib.optional enableBashCompletion bash-completion; nativeBuildInputs = [ vala diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 37882cc320e5c..49933ee2d1dbf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9028,7 +9028,7 @@ with pkgs; p7zip = callPackage ../tools/archivers/p7zip { }; - packagekit = callPackage ../tools/package-management/packagekit { nix = nixVersions.nix_2_6; }; + packagekit = callPackage ../tools/package-management/packagekit { nix = nixVersions.nix_2_8; }; packetdrill = callPackage ../tools/networking/packetdrill { };