change ykfde to wrap with all needed path
This commit is contained in:
@@ -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]}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user