change ykfde to wrap with all needed path

This commit is contained in:
2023-11-22 15:35:17 +01:00
parent 6ec1378c97
commit dba986fadc

View File

@@ -1,5 +1,16 @@
{ pkgs, lib, stdenv, makeWrapper }: { pkgs,
lib,
stdenv,
makeWrapper,
openssl,
yubikey-personalization,
cryptsetup,
}:
let
inherit (nixpkgs) callPackage pkgs stdenv;
pbkdf2Sha512 = callPackage ./pbkdf2-sha512.nix { };
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ykfde"; name = "ykfde";
src = ./scripts; src = ./scripts;
@@ -7,4 +18,7 @@ stdenv.mkDerivation {
installPhase = '' installPhase = ''
install -D --target $out/bin * install -D --target $out/bin *
''; '';
postInstall = ''
wrapProgram $out/bin/ykfde-enroll --prefix PATH : ${lib.makeBinPath [openssl, yubikey-personalization, cryptsetup, pbkdf2Sha512]}
'';
} }