2021-01-11 07:54:33 +00:00
|
|
|
{ fetchFromGitHub, git, gnupg, makeWrapper, openssl, lib, stdenv
|
2019-07-16 19:44:45 +01:00
|
|
|
, libxslt, docbook_xsl
|
|
|
|
}:
|
2015-08-07 18:15:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-17 02:57:45 +01:00
|
|
|
pname = "git-crypt";
|
2018-10-21 15:32:49 +01:00
|
|
|
version = "0.6.0";
|
2015-08-07 18:15:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AGWA";
|
2019-07-17 02:57:45 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-10-21 15:32:49 +01:00
|
|
|
sha256 = "13m9y0m6gc3mlw3pqv9x4i0him2ycbysizigdvdanhh514kga602";
|
2015-08-07 18:15:39 +01:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ libxslt makeWrapper ];
|
2019-07-16 19:44:45 +01:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
buildInputs = [ openssl ];
|
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"'
|
|
|
|
'';
|
|
|
|
|
2019-07-16 19:44:45 +01:00
|
|
|
makeFlags = [
|
2019-09-03 17:38:57 +01:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2019-07-16 19:44:45 +01:00
|
|
|
"ENABLE_MAN=yes"
|
|
|
|
"DOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl-nons/manpages/docbook.xsl"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/git-crypt --prefix PATH : $out/bin:${git}/bin:${gnupg}/bin
|
2015-08-07 18:15:39 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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;
|
|
|
|
maintainers = [ maintainers.dochang ];
|
2016-09-21 13:34:56 +01:00
|
|
|
platforms = platforms.unix;
|
2015-08-07 18:15:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|