mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
890 B
Nix
41 lines
890 B
Nix
{ lib, stdenv, fetchFromGitHub, unzip, pkg-config, glib, llvmPackages }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "milu-nightly";
|
|
version = "2016-05-09";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "14cglw04cliwlpvw7qrs6rfm5sv6qa558d7iby5ng3wdjcwx43nk";
|
|
rev = "b5f2521859c0319d321ad3c1ad793b826ab5f6e1";
|
|
repo = "Milu";
|
|
owner = "yuejia";
|
|
};
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
preConfigure = ''
|
|
sed -i 's#/usr/bin/##g' Makefile
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp bin/milu $out/bin
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config unzip ];
|
|
buildInputs = [
|
|
glib
|
|
llvmPackages.libclang
|
|
];
|
|
|
|
meta = {
|
|
description = "Higher Order Mutation Testing Tool for C and C++ programs";
|
|
homepage = "https://github.com/yuejia/Milu";
|
|
license = lib.licenses.bsd2;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "milu";
|
|
};
|
|
}
|
|
|