···1+{ stdenv, fetchFromGitHub, openssl }:
2+3+stdenv.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 ];
16+17+ installPhase = ''
18+ make install PREFIX=$out
19+ '';
20+21+ meta = {
22+ homepage = "https://www.agwa.name/projects/git-crypt";
23+ description = "transparent file encryption in git";
24+ longDescription = ''
25+ git-crypt enables transparent encryption and decryption of files in a git
26+ repository. Files which you choose to protect are encrypted when
27+ committed, and decrypted when checked out. git-crypt lets you freely
28+ share a repository containing a mix of public and private
29+ content. git-crypt gracefully degrades, so developers without the secret
30+ key can still clone and commit to a repository with encrypted files. This
31+ lets you store your secret material (such as keys or passwords) in the
32+ same repository as your code, without requiring you to lock down your
33+ entire repository.
34+ '';
35+ downloadPage = "https://github.com/AGWA/git-crypt/releases";
36+ license = stdenv.lib.licenses.gpl3;
37+ version = "0.5.0";
38+ maintainers = [ "Desmond O. Chang <dochang@gmail.com>" ];
39+ };
40+41+}