2016-11-26 03:28:20 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, parted, udev
|
|
|
|
}:
|
|
|
|
let
|
2016-11-27 14:52:38 +00:00
|
|
|
version = "6.0-2016.11.16-unstable";
|
2016-11-26 03:28:20 +00:00
|
|
|
in
|
2016-09-28 12:31:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "f3-${version}";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AltraMayor";
|
|
|
|
repo = "f3";
|
2016-11-26 03:28:20 +00:00
|
|
|
rev = "eabf001f69a788e64912bc9e812c118a324077d5";
|
|
|
|
sha256 = "0ypqyqwqiy3ynssdd9gamk1jxywg6avb45ndlzhv3wxh2qcframm";
|
2016-09-28 12:31:27 +01:00
|
|
|
};
|
|
|
|
|
2016-11-26 03:28:20 +00:00
|
|
|
buildInputs = [ parted udev ];
|
|
|
|
|
2016-09-28 12:31:27 +01:00
|
|
|
patchPhase = "sed -i 's/-oroot -groot//' Makefile";
|
|
|
|
|
2016-11-26 03:28:20 +00:00
|
|
|
buildFlags = [ "CFLAGS=-fgnu89-inline" # HACK for weird gcc incompatibility with -O2
|
|
|
|
"all" # f3read, f3write
|
|
|
|
"extra" # f3brew, f3fix, f3probe
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)"
|
|
|
|
"install"
|
|
|
|
"install-extra"
|
|
|
|
];
|
|
|
|
|
2016-09-28 12:31:27 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fight Flash Fraud";
|
|
|
|
homepage = http://oss.digirati.com.br/f3/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|