1{ lib, stdenv, fetchurl, sharutils, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 pname = "aespipe";
5 version = "2.4g";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/loop-aes/aespipe/aespipe-v${version}.tar.bz2";
9 sha256 = "sha256-v7l+feFh6NfOETsWO9odGo7HfSwa+rVtzIFT16kBh/w=";
10 };
11
12 nativeBuildInputs = [ makeWrapper ];
13
14 configureFlags = [ "--enable-padlock" "--enable-intelaes" ];
15
16 postInstall = ''
17 cp bz2aespipe $out/bin
18 wrapProgram $out/bin/bz2aespipe \
19 --prefix PATH : $out/bin:${lib.makeBinPath [ sharutils ]}
20 '';
21
22 meta = with lib; {
23 description = "AES encrypting or decrypting pipe";
24 homepage = "https://loop-aes.sourceforge.net/aespipe.README";
25 license = licenses.gpl2;
26 maintainers = [ maintainers.goibhniu ];
27 platforms = platforms.unix;
28 };
29}