2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2013-04-12 13:37:50 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-07-24 08:47:37 +01:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "f-prot";
|
2012-07-24 08:47:37 +01:00
|
|
|
version = "6.2.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://files.f-prot.com/files/unix-trial/fp-Linux.x86.32-ws.tar.gz";
|
2012-07-24 08:47:37 +01:00
|
|
|
sha256 = "0qlsrkanf0inplwv1i6hqbimdg91syf5ggd1vahsm9lhivmnr0v5";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/bin
|
2012-07-24 08:47:37 +01:00
|
|
|
cp fpscan $out/bin
|
|
|
|
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/opt/f-prot
|
2012-07-24 08:47:37 +01:00
|
|
|
cp fpupdate $out/opt/f-prot
|
|
|
|
cp product.data.default $out/opt/f-prot/product.data
|
|
|
|
cp license.key $out/opt/f-prot/
|
|
|
|
cp f-prot.conf.default $out/opt/f-prot/f-prot.conf
|
|
|
|
ln -s $out/opt/f-prot/fpupdate $out/bin/fpupdate
|
|
|
|
|
2014-12-17 18:11:30 +00:00
|
|
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/opt/f-prot/fpupdate
|
2012-07-24 08:47:37 +01:00
|
|
|
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/share/man/
|
|
|
|
mkdir -p $out/share/man/man1
|
2012-07-24 08:47:37 +01:00
|
|
|
cp doc/man/fpscan.1 $out/share/man/man1
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/share/man/man5
|
2012-07-24 08:47:37 +01:00
|
|
|
cp doc/man/f-prot.conf.5 $out/share/man/man5
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/share/man/man8
|
2012-07-24 08:47:37 +01:00
|
|
|
cp doc/man/fpupdate.8 $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.f-prot.com";
|
2013-04-12 13:37:50 +01:00
|
|
|
description = "A popular proprietary antivirus program";
|
|
|
|
license = licenses.unfree;
|
2012-07-24 08:47:37 +01:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|