nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 sqlcipher,
6 pkg-config,
7 nix-update-script,
8}:
9
10buildGoModule rec {
11 pname = "enpass-cli";
12 version = "1.7.0";
13
14 src = fetchFromGitHub {
15 owner = "HazCod";
16 repo = "enpass-cli";
17 tag = "v${version}";
18 hash = "sha256-SloFiV+tmdjiHjeS/SsDMLZ9gjNB/EOmgexMXpu253I=";
19 };
20
21 vendorHash = "sha256-S02hHPA7WSAMLELhfD+2cmsbhxsCiXdPbikU/GGubPc=";
22
23 nativeBuildInputs = [
24 pkg-config
25 ];
26
27 buildInputs = [
28 sqlcipher
29 ];
30
31 env.CGO_ENABLED = "1";
32
33 postInstall = ''
34 mv $out/bin/enpasscli $out/bin/enpass-cli
35 '';
36
37 passthru.updateScript = nix-update-script { };
38
39 meta = {
40 description = "Command line client for Enpass password manager";
41 mainProgram = "enpass-cli";
42 homepage = "https://github.com/HazCod/enpass-cli";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ deej-io ];
45 platforms = lib.platforms.unix;
46 };
47}