Created new bitwarden-cli-bin for macos install

This commit is contained in:
Random936
2024-09-26 14:05:15 -07:00
parent 0a49ce845b
commit 5ac291629a
4 changed files with 41 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{ pkgs, lib, config, ... }: rec {
tpm = pkgs.callPackage ./tpm {};
evil-winrm = pkgs.callPackage ./evil-winrm {};
bitwarden-cli-bin = pkgs.callPackage ./bitwarden-cli-bin {};
}

View File

@@ -0,0 +1,26 @@
{ lib, stdenv, fetchzip }: stdenv.mkDerivation rec {
pname = "bitwarden-cli-bin";
version = "2024.8.2";
src = fetchzip {
url = "https://github.com/bitwarden/clients/releases/download/cli-v${version}/bw-macos-${version}.zip";
hash = "sha256-obJVIJ2n5lEXsjn7RQ+lIraHnBcn4vsU6LaAV4NPBSU=";
};
doCheck = true;
dontStrip = true;
installPhase = ''
mkdir -p $out/bin
cp -rv $src/bw $out/bin/bw
'';
meta = with lib; {
description = "Secure and free password manager for all of your devices";
homepage = "https://bitwarden.com";
license = lib.licenses.gpl3Only;
mainProgram = "bw";
platforms = platforms.darwin;
};
}