d56b9fb1f6
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/transcrypt -h` got 0 exit code - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/transcrypt --help` got 0 exit code - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/transcrypt -v` and found version 1.0.3 - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/transcrypt --version` and found version 1.0.3 - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/.transcrypt-wrapped -h` got 0 exit code - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/.transcrypt-wrapped --help` got 0 exit code - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/.transcrypt-wrapped -v` and found version 1.0.3 - ran `/nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3/bin/.transcrypt-wrapped --version` and found version 1.0.3 - found 1.0.3 with grep in /nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3 - found 1.0.3 in filename of file in /nix/store/dbpy65mkqdmjij53vjpcfisvhbwnrav5-transcrypt-1.0.3 cc "@elasticdog"
41 lines
1.5 KiB
Nix
41 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub, git, makeWrapper, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "transcrypt-${version}";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elasticdog";
|
|
repo = "transcrypt";
|
|
rev = "v${version}";
|
|
sha256 = "1hvg4ipsxm27n5yn5jpk43qyvvx5gx3z3cczw1z3r6hrs4n8d5rz";
|
|
};
|
|
|
|
buildInputs = [ git makeWrapper openssl ];
|
|
|
|
installPhase = ''
|
|
install -m 755 -D transcrypt $out/bin/transcrypt
|
|
install -m 644 -D man/transcrypt.1 $out/share/man/man1/transcrypt.1
|
|
install -m 644 -D contrib/bash/transcrypt $out/share/bash-completion/completions/transcrypt
|
|
install -m 644 -D contrib/zsh/_transcrypt $out/share/zsh/site-functions/_transcrypt
|
|
|
|
wrapProgram $out/bin/transcrypt \
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ git openssl ]}"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Transparently encrypt files within a Git repository";
|
|
longDescription = ''
|
|
A script to configure transparent encryption of sensitive files stored in
|
|
a Git repository. Files that you choose will be automatically encrypted
|
|
when you commit them, and automatically decrypted when you check them
|
|
out. The process will degrade gracefully, so even people without your
|
|
encryption password can safely commit changes to the repository's
|
|
non-encrypted files.
|
|
'';
|
|
homepage = https://github.com/elasticdog/transcrypt;
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.elasticdog ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|