1{ stdenv, fetchFromGitHub, openssl, gnupg1compat, makeWrapper }:
2
3stdenv.mkDerivation rec {
4
5 name = "git-crypt-${meta.version}";
6
7 src = fetchFromGitHub {
8 owner = "AGWA";
9 repo = "git-crypt";
10 rev = meta.version;
11 sha256 = "4fe45f903a4b3cc06a5fe11334b914c225009fe8440d9e91a54fdf21cf4dcc4d";
12 inherit name;
13 };
14
15 buildInputs = [ openssl makeWrapper ];
16
17 installPhase = ''
18 make install PREFIX=$out
19 wrapProgram $out/bin/* --prefix PATH : ${gnupg1compat}/bin
20 '';
21
22 meta = with stdenv.lib; {
23 homepage = https://www.agwa.name/projects/git-crypt;
24 description = "Transparent file encryption in git";
25 longDescription = ''
26 git-crypt enables transparent encryption and decryption of files in a git
27 repository. Files which you choose to protect are encrypted when
28 committed, and decrypted when checked out. git-crypt lets you freely
29 share a repository containing a mix of public and private
30 content. git-crypt gracefully degrades, so developers without the secret
31 key can still clone and commit to a repository with encrypted files. This
32 lets you store your secret material (such as keys or passwords) in the
33 same repository as your code, without requiring you to lock down your
34 entire repository.
35 '';
36 downloadPage = "https://github.com/AGWA/git-crypt/releases";
37 license = licenses.gpl3;
38 version = "0.5.0";
39 maintainers = [ maintainers.dochang ];
40 platforms = platforms.unix;
41 };
42
43}