2017-10-23 11:49:58 +01:00
|
|
|
{ fetchFromGitHub, git, gnupg1compat, makeWrapper, openssl, stdenv }:
|
2015-08-07 18:15:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "git-crypt-${meta.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AGWA";
|
|
|
|
repo = "git-crypt";
|
|
|
|
rev = meta.version;
|
|
|
|
sha256 = "4fe45f903a4b3cc06a5fe11334b914c225009fe8440d9e91a54fdf21cf4dcc4d";
|
|
|
|
inherit name;
|
|
|
|
};
|
|
|
|
|
2015-12-17 08:00:50 +00:00
|
|
|
buildInputs = [ openssl makeWrapper ];
|
2015-08-07 18:15:39 +01:00
|
|
|
|
2017-10-02 22:39:08 +01:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace commands.cpp \
|
|
|
|
--replace '(escape_shell_arg(our_exe_path()))' '= "git-crypt"'
|
|
|
|
'';
|
|
|
|
|
2015-08-07 18:15:39 +01:00
|
|
|
installPhase = ''
|
|
|
|
make install PREFIX=$out
|
2017-10-23 11:49:58 +01:00
|
|
|
wrapProgram $out/bin/* --prefix PATH : $out/bin:${git}/bin:${gnupg1compat}/bin
|
2015-08-07 18:15:39 +01:00
|
|
|
'';
|
|
|
|
|
2015-10-14 13:38:30 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://www.agwa.name/projects/git-crypt;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Transparent file encryption in git";
|
2015-08-07 18:15:39 +01:00
|
|
|
longDescription = ''
|
|
|
|
git-crypt enables transparent encryption and decryption of files in a git
|
|
|
|
repository. Files which you choose to protect are encrypted when
|
|
|
|
committed, and decrypted when checked out. git-crypt lets you freely
|
|
|
|
share a repository containing a mix of public and private
|
|
|
|
content. git-crypt gracefully degrades, so developers without the secret
|
|
|
|
key can still clone and commit to a repository with encrypted files. This
|
|
|
|
lets you store your secret material (such as keys or passwords) in the
|
|
|
|
same repository as your code, without requiring you to lock down your
|
|
|
|
entire repository.
|
|
|
|
'';
|
|
|
|
downloadPage = "https://github.com/AGWA/git-crypt/releases";
|
2015-10-14 13:38:30 +01:00
|
|
|
license = licenses.gpl3;
|
2015-08-07 18:15:39 +01:00
|
|
|
version = "0.5.0";
|
2015-10-14 13:38:30 +01:00
|
|
|
maintainers = [ maintainers.dochang ];
|
2016-09-21 13:34:56 +01:00
|
|
|
platforms = platforms.unix;
|
2015-08-07 18:15:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|