This commit is contained in:
Rongsong Shen 2025-11-05 11:07:14 +08:00
parent de44a16949
commit f7244c7e45
3 changed files with 41 additions and 1 deletions

View file

@ -13,6 +13,9 @@ let
};
tinylog = callPackage ./pkgs/t/tinylog/package.nix {};
unity_test_with_color = callPackage ./pkgs/u/unity-test/package.nix {};
uem = callPackage ./pkgs/u/uem/package.nix {
pkgs = pkgs;
};
in
{
xbuild = xbuild;
@ -21,4 +24,5 @@ in
zlog_with_pkgconf = zlog_with_pkgconf;
tinylog = tinylog;
unity_test_with_color = unity_test_with_color;
uem = uem;
}

35
pkgs/u/uem/package.nix Normal file
View file

@ -0,0 +1,35 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
let
pname = "uem";
version = "0.1";
meta = {
description = "Universal Emacs Manager";
homepage = "https://github.com/shen390s/uem";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.i01011001 ];
};
in
stdenv.mkDerivation (finalAttrs: {
pname = pname;
version = version;
src = fetchFromGitHub {
owner = "shen390s";
repo = "uem";
tag = "v${finalAttrs.version}";
# hash = "sha256-g0ubq7RxGQmL1R6vz9RIGJpVWYsgrZhsTWSrL1ySEug=";
};
nativeBuildInputs = [ roswell ];
doCheck = true;
buildPhase = ''
ros build roswell/uem.ros
'';
})

View file

@ -27,7 +27,8 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [ cmake ];
makeFlags = [ "UNITY_OUTPUT_COLOR=1" ];
# makeFlags = [ "UNITY_OUTPUT_COLOR=1" ];
env.NIX_CFLAGS_COMPILE = "-DUNITY_OUTPUT_COLOR=1";
doCheck = true;
postInstall = ''