2016-05-10 17:39:22 +01:00
|
|
|
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, clang, gcc }:
|
2016-05-05 07:38:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "milu-nightly-${version}";
|
|
|
|
version = "2016-05-09";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "14cglw04cliwlpvw7qrs6rfm5sv6qa558d7iby5ng3wdjcwx43nk";
|
|
|
|
rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1";
|
|
|
|
repo = "Milu";
|
|
|
|
owner = "yuejia";
|
|
|
|
};
|
|
|
|
|
2016-05-31 13:28:59 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2016-05-05 07:38:50 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's#/usr/bin/##g' Makefile
|
|
|
|
sed -i "s#-lclang#-L$(clang --print-search-dirs |
|
|
|
|
sed -ne '/libraries:/{s/libraries: =//; s/:/ -L/gp}') -lclang#g" Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/milu $out/bin
|
|
|
|
'';
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-05 07:38:50 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
unzip
|
|
|
|
clang
|
2016-05-10 17:39:22 +01:00
|
|
|
gcc
|
2016-05-05 07:38:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Higher Order Mutation Testing Tool for C and C++ programs";
|
2017-08-17 22:53:40 +01:00
|
|
|
homepage = https://github.com/yuejia/Milu;
|
2016-05-05 07:38:50 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-05-10 17:39:22 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-05-05 07:38:50 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vrthra ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|