blob: 9ca3e3580fdb0f86fa3f458368cbd7b5d098c8b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
lib,
stdenvNoCC,
makeWrapper,
dmidecode,
coreutils,
}:
stdenvNoCC.mkDerivation {
pname = "luks-hw-password";
version = "1.0";
meta = with lib; {
license = licenses.gpl3;
platforms = platforms.linux;
};
nativeBuildInputs = [makeWrapper];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${./luks-hw-password.sh} $out/bin/luks-hw-password \
--prefix PATH : ${lib.makeBinPath [dmidecode coreutils]}
'';
}
|