Improve build steps

This commit is contained in:
Felix Bargfeldt 2022-12-30 16:06:46 +01:00
parent 93a601f0d7
commit 026389f3bf
Signed by: Defelo
GPG key ID: 2A05272471204DD3

View file

@ -19,6 +19,7 @@
ykfde = with pkgs; let
dependencies = [
coreutils
cryptsetup
openssl
parted
@ -31,8 +32,9 @@
version = "latest";
src = self;
nativeBuildInputs = [makeWrapper];
buildPhase = "makeWrapper ${./ykfde.sh} ykfde --prefix PATH : ${lib.makeBinPath dependencies}";
installPhase = "install -D ykfde $out/bin/ykfde";
buildPhase = "cp ${./ykfde.sh} ykfde && chmod +x ykfde.sh";
installPhase = "install -Dt $out/bin ykfde";
postFixup = "wrapProgram $out/bin/ykfde --set PATH ${lib.makeBinPath dependencies}";
};
pbkdf2-sha512 = let