mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 11:20:19 +01:00
27 lines
452 B
Nix
27 lines
452 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
python3,
|
|
bitwarden-cli,
|
|
makeWrapper,
|
|
...
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "hbw";
|
|
version = "0.1";
|
|
src = ./hbw.py;
|
|
|
|
buildInputs = [
|
|
(python3.withPackages (ps: with ps; [pyotp]))
|
|
bitwarden-cli
|
|
makeWrapper
|
|
];
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src $out/bin/hbw
|
|
wrapProgram $out/bin/hbw --prefix PATH : ${lib.makeBinPath [bitwarden-cli]}
|
|
'';
|
|
}
|