Nixpkgs: Packagekit not compiling with Nix-backend enabled

Created on 17 Dec 2016  路  10Comments  路  Source: NixOS/nixpkgs

Issue description

packagekit won't compile on my machines, fixed it for myself temporarily by disabling the nix backend. would be nice to have a working nix backend on nixos. discussion was started at https://github.com/NixOS/nixpkgs/pull/21157.

long story short:
build-error: http://hastebin.com/tiyomifipe.log (by @bendlas)
commit that probably breaks it: https://github.com/NixOS/nixpkgs/commit/c94454a45a7410f9fdd84896c693c1c4df5e10f1 (by @matthewbauer)

Steps to reproduce

rebuild system with current master (with packagekit pulled in by anything ;) )

Technical details

  • System: 17.03.git.0b65f85 (Gorilla) (on a custom branch, where nix-backend is disabled atm - rebased on todays master)
bug GNOME

Most helpful comment

With Nix flakes caching support, I think we can get much better performance with this. I will work on updating this soon.

All 10 comments

Yeah so I'm mostly waiting for 1.12 to hit nix stable. Hopefully won't be too much longer.

What is the status of this, @matthewbauer?

It's on my todo list... There were some breaking changes in the Nix bindings, but I can look into fixing them now that Nix 2.0 is out.

Would anyone else like to adopt maintainership of PackageKit? I have authored https://github.com/hughsie/PackageKit/commit/f31ab6e8636b991e867a6adcd5dc5cda521f0830 which should fix this (although it's not extensively tested). It will hopefully be released soon. Ideally someone could integrate the new nix search & its JSON db here, but I haven't looked at it.

I would be willing to maintain it, but will not be able to contribute to the further integration until later in the summer.

Has anyone looked at this recently? I'm curious what the current state of packagekit is

Well, packagekit at least builds w/Nix these days, tested while updating to 1.1.13 but likely has built for some time now. (cc #77498).

Not sure status of packagekit service when enabling the nix backend (which the NixOS module presently sets to test_noop--somethign like this should enable the right backends, for testing?)... anyone know its status?

With Nix flakes caching support, I think we can get much better performance with this. I will work on updating this soon.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-var-nix-opt-nix-usr-local-nix/7101/57

I have a WIP branch for this here:

https://github.com/NixOS/nixpkgs/pull/94055

If you could test it out with any PackageKit clients you want to use and report back, that would be helpful!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

langston-barrett picture langston-barrett  路  3Comments

ob7 picture ob7  路  3Comments

grahamc picture grahamc  路  3Comments

edolstra picture edolstra  路  3Comments

ayyess picture ayyess  路  3Comments