This repository has no description
924 B
41 lines
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 nettle,
7 nix-update-script,
8}:
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "age-plugin-gpg";
11 version = "0.1.0";
12
13 src = fetchFromGitHub {
14 owner = "CertainLach";
15 repo = "age-plugin-gpg";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-HfCl+YAjKPNFtLAHjNyjlHhRxD85qZLWsfKzqORtj5U=";
18 };
19
20 cargoLock = {
21 lockFile = "${finalAttrs.src}/Cargo.lock";
22 };
23
24 nativeBuildInputs = [
25 pkg-config
26 rustPlatform.bindgenHook
27 ];
28
29 buildInputs = [ nettle ];
30
31 passthru.updateScript = nix-update-script { extraArgs = [ "--flake" ]; };
32
33 meta = {
34 description = "Age plugin utilizing gpg-agent & keygrips as recipients/identities";
35 homepage = "https://github.com/CertainLach/age-plugin-gpg";
36 license = lib.licenses.mit;
37 mainProgram = "age-plugin-gpg";
38 platforms = lib.platforms.unix;
39 maintainers = [ ];
40 };
41})