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