milu: modernize

+16 -9
+16 -9
pkgs/by-name/mi/milu/package.nix
··· 5 5 unzip, 6 6 pkg-config, 7 7 glib, 8 + llvm, 8 9 llvmPackages, 9 10 }: 10 11 ··· 13 14 version = "2016-05-09"; 14 15 15 16 src = fetchFromGitHub { 16 - sha256 = "14cglw04cliwlpvw7qrs6rfm5sv6qa558d7iby5ng3wdjcwx43nk"; 17 - rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1"; 18 - repo = "Milu"; 19 17 owner = "yuejia"; 18 + repo = "Milu"; 19 + rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1"; 20 + hash = "sha256-0w7SOZONj2eLX/E0VIrCZutSXTY648P3pTxSRgCnj5E="; 20 21 }; 21 22 22 23 hardeningDisable = [ "format" ]; 23 24 24 25 preConfigure = '' 25 - sed -i 's#/usr/bin/##g' Makefile 26 - ''; 27 - 28 - installPhase = '' 29 - mkdir -p $out/bin 30 - cp bin/milu $out/bin 26 + substituteInPlace Makefile \ 27 + --replace-fail /usr/bin/ "" \ 28 + --replace-fail bin/milu $out/bin/milu 31 29 ''; 32 30 33 31 nativeBuildInputs = [ 34 32 pkg-config 35 33 unzip 36 34 ]; 35 + 37 36 buildInputs = [ 38 37 glib 38 + llvm.dev 39 39 llvmPackages.libclang 40 40 ]; 41 41 42 + preBuild = '' 43 + mkdir -p $out/bin 44 + ''; 45 + 42 46 env.NIX_CFLAGS_COMPILE = toString [ 43 47 "-Wno-incompatible-pointer-types" 44 48 "-Wno-implicit-function-declaration" 45 49 "-Wno-error=int-conversion" 46 50 ]; 51 + 52 + # `make all` already installs the binaries 53 + dontInstall = true; 47 54 48 55 meta = { 49 56 description = "Higher Order Mutation Testing Tool for C and C++ programs";