1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 libgit2,
6 git,
7 pkg-config,
8 zlib,
9}:
10
11rustPlatform.buildRustPackage {
12 pname = "git-agecrypt";
13 version = "0-unstable-2024-03-11";
14
15 src = fetchFromGitHub {
16 owner = "vlaci";
17 repo = "git-agecrypt";
18 rev = "126be86c515466c5878a60561f754a9ab4af6ee8";
19 hash = "sha256-cmnBW/691mmLHq8tWpD3+zwCf7Wph5fcVdSxQGxqd1k=";
20 };
21
22 cargoHash = "sha256-71puTOjuV3egkip8pbiYbKxfhoZYtnirp4NrgiXR13I=";
23
24 nativeBuildInputs = [
25 pkg-config
26 git
27 ];
28
29 buildInputs = [
30 libgit2
31 zlib
32 ];
33
34 meta = with lib; {
35 description = "Alternative to git-crypt using age instead of GPG";
36 homepage = "https://github.com/vlaci/git-agecrypt";
37 license = licenses.mpl20;
38 maintainers = with maintainers; [ kuznetsss ];
39 mainProgram = "git-agecrypt";
40 };
41}