aboutsummaryrefslogtreecommitdiff
path: root/pkgs/luks-hw-password/default.nix
blob: 9797735fad001326d7b286bc14ba4c51297936a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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 ]}
  '';
}