Change:
Describe the bug does not provide the binary, while I would expect it to. To Reproduce Steps to reproduce the behavior: in Expected behavior (and ) are installed for operator usage of p11-kit. Screenshots See step 3. Additional context It turns out the binaries are present when I do . Debian ships the binaries as part of the base non-dev package. RHEL/CentOS ship the binary as part of and have separated out into . Notify maintainers (based on git history, there is no meta.maintainers for p11-kit) Metadata Please run and paste the result. Maintainer information:
p11-kit is a library as well, so it makes sense to have headers, library, and binaries in separate outputs. I think we can fixed this by setting: in the derivation.
If we do this we need to fix it in flatpak's patch to hardcode the path to the p11-kit binary.
I marked this as stale due to inactivity. &rarr;
Any updates on this?
I marked this as stale due to inactivity. &rarr;

Discussion:
# Hardcode paths used by Flatpak itself. (substituteAll { src = ./fix-paths.patch; <del> p11kit = "${p11-kit.dev}/bin/p11-kit"; </del> <ins> p11kit = "${p11-kit.bin}/bin/p11-kit"; </ins> }) # Adapt paths exposed to sandbox for NixOS.

<del> { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, which , gettext, libffi, libiconv, libtasn1 </del> <ins> { lib , stdenv , fetchFromGitHub , autoreconfHook , docbook-xsl-nons , gtk-doc , installShellFiles , libxslt # for xsltproc , pkg-config , which , libffi , libiconv , libintl , libtasn1 </ins> }: stdenv.mkDerivation rec { pname = "p11-kit"; <del> version = "0.24.0"; </del> <ins> version = "0.24.1"; </ins> src = fetchFromGitHub { owner = "p11-glue"; repo = pname; rev = version; <del> sha256 = "sha256-jvUzOhMvbq05SxQ+kjKQHDDMzNwo4U6nFHu3JjygJHw="; </del> <ins> hash = "sha256-1QIMEGBZsqLYU3v5ZswD5K9VcIGLBovJlC10lBHhH7c="; </ins> }; <del> outputs = [ "out" "dev"]; outputBin = "dev"; </del> <ins> outputs = [ "out" "bin" "dev"]; </ins> <del> # for cross platform builds of p11-kit, libtasn1 in nativeBuildInputs </del> <ins> # For cross platform builds of p11-kit, libtasn1 in nativeBuildInputs </ins> # provides the asn1Parser binary on the hostPlatform needed for building. # at the same time, libtasn1 in buildInputs provides the libasn1 library # to link against for the target platform. <del> # hence, libtasn1 is required in both native and build inputs. nativeBuildInputs = [ autoreconfHook pkg-config which libtasn1 ]; buildInputs = [ gettext libffi libiconv libtasn1 ]; </del> <ins> # Hence, libtasn1 is required in both native and build inputs. nativeBuildInputs = [ autoreconfHook docbook-xsl-nons gtk-doc installShellFiles libtasn1 libxslt.bin pkg-config which ]; buildInputs = [ libffi libiconv libintl libtasn1 ]; </ins> autoreconfPhase = '' NOCONFIGURE=1 ./autogen.sh ''; configureFlags = [ <ins> "--enable-doc" </ins> "--sysconfdir=/etc" "--localstatedir=/var" "--with-trust-paths=${lib.concatStringsSep ":" [

"exampledir=${placeholder "out"}/etc/pkcs11" ]; <ins> postInstall = '' installShellCompletion --bash bash-completion/{p11-kit,trust} ''; </ins> meta = with lib; { description = "Library for loading and sharing PKCS#11 modules"; longDescription = ''

PKCS#11 modules in such a way that they're discoverable. ''; homepage = "https://p11-glue.github.io/p11-glue/p11-kit.html"; <ins> changelog = [ "https://github.com/p11-glue/p11-kit/raw/${version}/NEWS" "https://github.com/p11-glue/p11-kit/releases/tag/${version}" ]; </ins> platforms = platforms.all; license = licenses.bsd3; };