···11+{ stdenv, fetchFromGitHub, openssl }:
22+33+stdenv.mkDerivation rec {
44+55+ name = "git-crypt-${meta.version}";
66+77+ src = fetchFromGitHub {
88+ owner = "AGWA";
99+ repo = "git-crypt";
1010+ rev = meta.version;
1111+ sha256 = "4fe45f903a4b3cc06a5fe11334b914c225009fe8440d9e91a54fdf21cf4dcc4d";
1212+ inherit name;
1313+ };
1414+1515+ buildInputs = [ openssl ];
1616+1717+ installPhase = ''
1818+ make install PREFIX=$out
1919+ '';
2020+2121+ meta = {
2222+ homepage = "https://www.agwa.name/projects/git-crypt";
2323+ description = "transparent file encryption in git";
2424+ longDescription = ''
2525+ git-crypt enables transparent encryption and decryption of files in a git
2626+ repository. Files which you choose to protect are encrypted when
2727+ committed, and decrypted when checked out. git-crypt lets you freely
2828+ share a repository containing a mix of public and private
2929+ content. git-crypt gracefully degrades, so developers without the secret
3030+ key can still clone and commit to a repository with encrypted files. This
3131+ lets you store your secret material (such as keys or passwords) in the
3232+ same repository as your code, without requiring you to lock down your
3333+ entire repository.
3434+ '';
3535+ downloadPage = "https://github.com/AGWA/git-crypt/releases";
3636+ license = stdenv.lib.licenses.gpl3;
3737+ version = "0.5.0";
3838+ maintainers = [ "Desmond O. Chang <dochang@gmail.com>" ];
3939+ };
4040+4141+}