Skip to content

Commit 5d3f114

Browse files
authored
fex: cleanup (#396617)
2 parents 063dece + 16d86dd commit 5d3f114

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

pkgs/by-name/fe/fex/package.nix

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
2-
fetchFromGitHub,
32
lib,
43
llvmPackages,
4+
fetchFromGitHub,
55
cmake,
66
ninja,
77
pkg-config,
88
qt5,
99
python3,
10+
nix-update-script,
1011
}:
1112

12-
llvmPackages.stdenv.mkDerivation (finalAttrs: rec {
13+
llvmPackages.stdenv.mkDerivation (finalAttrs: {
1314
pname = "fex";
1415
version = "2504";
1516

1617
src = fetchFromGitHub {
1718
owner = "FEX-Emu";
1819
repo = "FEX";
19-
tag = "FEX-${version}";
20+
tag = "FEX-${finalAttrs.version}";
2021
hash = "sha256-tqUJBHYSRlEUaLI4WItzotIHGMUNbdjA7o9NjBYZmHw=";
2122
fetchSubmodules = true;
2223
};
@@ -44,10 +45,10 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: rec {
4445
];
4546

4647
cmakeFlags = [
47-
"-DCMAKE_BUILD_TYPE=Release"
48-
"-DUSE_LINKER=lld"
49-
"-DENABLE_LTO=True"
50-
"-DENABLE_ASSERTIONS=False"
48+
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
49+
(lib.cmakeFeature "USE_LINKER" "lld")
50+
(lib.cmakeBool "ENABLE_LTO" true)
51+
(lib.cmakeBool "ENABLE_ASSERTIONS" false)
5152
(lib.cmakeFeature "OVERRIDE_VERSION" finalAttrs.version)
5253
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
5354
];
@@ -62,9 +63,14 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: rec {
6263
wrapQtApp $out/bin/FEXConfig
6364
'';
6465

66+
passthru = {
67+
updateScript = nix-update-script { };
68+
};
69+
6570
meta = {
6671
description = "Fast usermode x86 and x86-64 emulator for Arm64 Linux";
6772
homepage = "https://fex-emu.com/";
73+
changelog = "https://github.com/FEX-Emu/FEX/releases/tag/FEX-${finalAttrs.version}";
6874
platforms = [ "aarch64-linux" ];
6975
license = lib.licenses.mit;
7076
maintainers = with lib.maintainers; [ andre4ik3 ];

0 commit comments

Comments
 (0)