use colored unity-test
This commit is contained in:
parent
4dc03b821e
commit
da33929aab
2 changed files with 32 additions and 11 deletions
|
|
@ -5,10 +5,20 @@
|
|||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
let
|
||||
pname = "unity-test";
|
||||
version = "2.6.1";
|
||||
|
||||
meta = {
|
||||
description = "Unity Unit Testing Framework";
|
||||
homepage = "https://www.throwtheswitch.org/unity";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.i01011001 ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = pname;
|
||||
version = version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ThrowTheSwitch";
|
||||
repo = "Unity";
|
||||
|
|
@ -20,10 +30,21 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
makeFlags = [ "UNITY_OUTPUT_COLOR=1" ];
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Unity Unit Testing Framework";
|
||||
homepage = "https://www.throwtheswitch.org/unity";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.i01011001 ];
|
||||
};
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
cat >$out/lib/pkgconfig/unity.pc <<EOF
|
||||
prefix=$out
|
||||
exec_prefix=\''${prefix}
|
||||
libdir=$out/lib
|
||||
includedir=\''${prefix}/include
|
||||
|
||||
Name: ${pname}
|
||||
Description: ${meta.description}
|
||||
Version: ${version}
|
||||
Libs: -L\''${libdir} -lunity
|
||||
Cflags: -I\''${includedir}
|
||||
EOF
|
||||
'';
|
||||
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue