Skip to content

Commit 4283c35

Browse files
committedMar 10, 2025
milu: modernize
1 parent 293bd74 commit 4283c35

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed
 

‎pkgs/by-name/mi/milu/package.nix

+11-8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
unzip,
66
pkg-config,
77
glib,
8+
llvm,
89
llvmPackages,
910
}:
1011

@@ -13,10 +14,10 @@ stdenv.mkDerivation {
1314
version = "2016-05-09";
1415

1516
src = fetchFromGitHub {
16-
sha256 = "14cglw04cliwlpvw7qrs6rfm5sv6qa558d7iby5ng3wdjcwx43nk";
17-
rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1";
18-
repo = "Milu";
1917
owner = "yuejia";
18+
repo = "Milu";
19+
rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1";
20+
hash = "sha256-0w7SOZONj2eLX/E0VIrCZutSXTY648P3pTxSRgCnj5E=";
2021
};
2122

2223
hardeningDisable = [ "format" ];
@@ -25,17 +26,14 @@ stdenv.mkDerivation {
2526
sed -i 's#/usr/bin/##g' Makefile
2627
'';
2728

28-
installPhase = ''
29-
mkdir -p $out/bin
30-
cp bin/milu $out/bin
31-
'';
32-
3329
nativeBuildInputs = [
3430
pkg-config
3531
unzip
3632
];
33+
3734
buildInputs = [
3835
glib
36+
llvm.dev
3937
llvmPackages.libclang
4038
];
4139

@@ -45,6 +43,11 @@ stdenv.mkDerivation {
4543
"-Wno-error=int-conversion"
4644
];
4745

46+
installPhase = ''
47+
mkdir -p $out/bin
48+
cp bin/milu $out/bin
49+
'';
50+
4851
meta = {
4952
description = "Higher Order Mutation Testing Tool for C and C++ programs";
5053
homepage = "https://github.com/yuejia/Milu";

0 commit comments

Comments
 (0)
Failed to load comments.