2016-11-26 04:28:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, parted, udev
|
|
|
|
}:
|
2018-03-11 19:05:41 +01:00
|
|
|
|
2016-09-28 13:31:27 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-11 19:05:41 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "f3";
|
2018-11-19 19:04:52 +01:00
|
|
|
version = "7.1";
|
2016-09-28 13:31:27 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AltraMayor";
|
2018-03-11 19:05:41 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2018-11-19 19:04:52 +01:00
|
|
|
sha256 = "0zglsmz683jg7f9wc6vmgljyg9w87pbnjw5x4w6x02w8233zvjqf";
|
2016-09-28 13:31:27 +02:00
|
|
|
};
|
|
|
|
|
2016-11-26 04:28:20 +01:00
|
|
|
buildInputs = [ parted udev ];
|
|
|
|
|
2016-09-28 13:31:27 +02:00
|
|
|
patchPhase = "sed -i 's/-oroot -groot//' Makefile";
|
|
|
|
|
2018-03-11 19:05:41 +01:00
|
|
|
buildFlags = [ "all" # f3read, f3write
|
2016-11-26 04:28:20 +01:00
|
|
|
"extra" # f3brew, f3fix, f3probe
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)"
|
|
|
|
"install"
|
|
|
|
"install-extra"
|
|
|
|
];
|
|
|
|
|
2016-09-28 13:31:27 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|