nixpkgs-suyu/pkgs/applications/misc/milu/default.nix

41 lines
904 B
Nix
Raw Normal View History

2018-01-16 22:20:13 +01:00
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, llvmPackages }:
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "milu-nightly";
version = "2016-05-09";
src = fetchFromGitHub {
sha256 = "14cglw04cliwlpvw7qrs6rfm5sv6qa558d7iby5ng3wdjcwx43nk";
rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1";
repo = "Milu";
owner = "yuejia";
};
2016-05-31 14:28:59 +02:00
hardeningDisable = [ "format" ];
preConfigure = ''
sed -i 's#/usr/bin/##g' Makefile
'';
installPhase = ''
mkdir -p $out/bin
cp bin/milu $out/bin
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
glib
unzip
2018-01-16 22:20:13 +01:00
llvmPackages.libclang
];
meta = {
description = "Higher Order Mutation Testing Tool for C and C++ programs";
homepage = https://github.com/yuejia/Milu;
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.vrthra ];
};
}