diff options
author | lethalman <lucabru@src.gnome.org> | 2015-08-08 15:33:02 +0200 |
---|---|---|
committer | lethalman <lucabru@src.gnome.org> | 2015-08-08 15:33:02 +0200 |
commit | 494a1eace8921e1a03c70608091008cd940b0c35 (patch) | |
tree | cad63b0f04a48fe15c88e398c01cf323716c81c2 /pkgs/applications | |
parent | db9679259a92dc77d86ee52288114e3b0ecd1362 (diff) | |
parent | f3cb7010855972002431f8d97d73d40c016cf173 (diff) | |
download | nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar.gz nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar.bz2 nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar.lz nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar.xz nixlib-494a1eace8921e1a03c70608091008cd940b0c35.tar.zst nixlib-494a1eace8921e1a03c70608091008cd940b0c35.zip |
Merge pull request #9162 from dochang/git-crypt
Add new package git-crypt
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git-crypt/default.nix | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index a73d16374176..b8bce1c9eb56 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -105,4 +105,6 @@ rec { git-cola = callPackage ./git-cola { }; git-imerge = callPackage ./git-imerge { }; + + git-crypt = callPackage ./git-crypt { }; } diff --git a/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix b/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix new file mode 100644 index 000000000000..c13c5e070011 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, openssl }: + +stdenv.mkDerivation rec { + + name = "git-crypt-${meta.version}"; + + src = fetchFromGitHub { + owner = "AGWA"; + repo = "git-crypt"; + rev = meta.version; + sha256 = "4fe45f903a4b3cc06a5fe11334b914c225009fe8440d9e91a54fdf21cf4dcc4d"; + inherit name; + }; + + buildInputs = [ openssl ]; + + installPhase = '' + make install PREFIX=$out + ''; + + meta = { + homepage = "https://www.agwa.name/projects/git-crypt"; + description = "transparent file encryption in git"; + 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"; + license = stdenv.lib.licenses.gpl3; + version = "0.5.0"; + maintainers = [ "Desmond O. Chang <dochang@gmail.com>" ]; + }; + +} |