1{ stdenv, fetchurl, libiconv }:
2
3stdenv.mkDerivation rec {
4 version = "3.0.9";
5 name = "aescrypt-${version}";
6
7 src = fetchurl {
8 url = "http://www.aescrypt.com/download/v3/linux/${name}.tgz";
9 sha256 = "3f3590f9b7e50039611ba9c0cf1cae1b188a44bd39cfc41553db7ec5709c0882";
10 };
11
12 preBuild = ''
13 cd src
14 '';
15
16 installPhase= ''
17 mkdir -p $out/bin
18 cp aescrypt $out/bin
19 cp aescrypt_keygen $out/bin
20 '';
21
22 buildInputs = [ libiconv ];
23
24 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
25
26 meta = with stdenv.lib; {
27 description = "Encrypt files with Advanced Encryption Standard (AES)";
28 homepage = http://www.aescrypt.com/;
29 license = licenses.gpl2;
30 maintainers = with maintainers; [ lovek323 qknight ];
31 platforms = stdenv.lib.platforms.all;
32 hydraPlatforms = stdenv.lib.platforms.linux;
33 };
34}