e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, makeBinaryWrapper
|
|
, libfido2
|
|
, dbus
|
|
, pinentry
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "goldwarden";
|
|
version = "0.2.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quexten";
|
|
repo = "goldwarden";
|
|
rev = "v${version}";
|
|
hash = "sha256-UjNDr5iWOd34VrKCrYVlPJVbKq/HizupYJ9H4jJq8oI=";
|
|
};
|
|
|
|
vendorHash = "sha256-AiYgI2dBhVYxGNU7t4dywi8KWiffO6V05KFYoGzA0t4=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
nativeBuildInputs = [makeBinaryWrapper];
|
|
|
|
buildInputs = [libfido2];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/goldwarden \
|
|
--suffix PATH : ${lib.makeBinPath [dbus pinentry]}
|
|
|
|
install -Dm644 $src/resources/com.quexten.goldwarden.policy -t $out/share/polkit-1/actions
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
meta = with lib; {
|
|
description = "A feature-packed Bitwarden compatible desktop integration";
|
|
homepage = "https://github.com/quexten/goldwarden";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ arthsmn ];
|
|
mainProgram = "goldwarden";
|
|
platforms = platforms.linux; # Support for other platforms is not yet ready, see https://github.com/quexten/goldwarden/issues/4
|
|
};
|
|
}
|