flatpak: use correct p11-kit output

Fixes #80452
This commit is contained in:
worldofpeace 2020-02-18 11:48:24 -05:00
parent 59bf79ec4b
commit 02213fdff2
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
# Hardcode paths used by Flatpak itself.
(substituteAll {
src = ./fix-paths.patch;
p11 = p11-kit;
p11kit = "${p11-kit.dev}/bin/p11-kit";
})
# Adapt paths exposed to sandbox for NixOS.

View file

@ -7,7 +7,7 @@ index 5dd7629e..ddc71a4c 100644
int i;
char *p11_argv[] = {
- "p11-kit", "server",
+ "@p11@/bin/p11-kit", "server",
+ "@p11kit@", "server",
/* We explicitly request --sh here, because we then fail on earlier versions that doesn't support
* this flag. This is good, because those earlier versions did not properly daemonize and caused
* the spawn_sync to hang forever, waiting for the pipe to close.