2019-11-11 03:35:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "mcfgthreads";
|
|
|
|
version = "git";
|
2019-11-11 05:23:32 +00:00
|
|
|
|
2019-11-11 03:35:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lhmouse";
|
|
|
|
repo = "mcfgthread";
|
|
|
|
rev = "9570e5ca7b98002d707c502c919d951bf256b9c6";
|
|
|
|
sha256 = "10y2x3x601a7c1hkd6zlr3xpfsnlr05xl28v23clf619756a5755";
|
|
|
|
};
|
2019-11-11 05:23:32 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2019-11-11 03:35:59 +00:00
|
|
|
# Don't want prebuilt binaries sneaking in.
|
|
|
|
postUnpack = ''
|
|
|
|
rm -r "$sourceRoot/debug" "$sourceRoot/release"
|
|
|
|
'';
|
2019-11-11 05:23:32 +00:00
|
|
|
|
2021-03-09 19:16:22 +00:00
|
|
|
postPatch = ''
|
2021-03-11 22:48:12 +00:00
|
|
|
substituteInPlace Makefile.am --replace '-Werror' ""
|
2021-03-09 19:16:22 +00:00
|
|
|
'';
|
|
|
|
|
2019-11-11 03:35:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
}
|