linuxPackages.v86d: fix build (#407173)
This commit is contained in:
@@ -16,14 +16,17 @@ stdenv.mkDerivation {
|
||||
src = fetchFromGitHub {
|
||||
owner = "mjanusz";
|
||||
repo = "v86d";
|
||||
rev = "v86d-${pversion}";
|
||||
tag = "v86d-${pversion}";
|
||||
hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
||||
# GCC 14 makes this an error by default, remove when fixed upstream
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration -Wno-implicit-int";
|
||||
|
||||
configureFlags = [
|
||||
"--with-klibc"
|
||||
"--with-x86emu"
|
||||
@@ -37,17 +40,21 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
./configure $configureFlags
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
buildInputs = [ klibc ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Daemon to run x86 code in an emulated environment";
|
||||
mainProgram = "v86d";
|
||||
homepage = "https://github.com/mjanusz/v86d";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ codyopel ];
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ codyopel ];
|
||||
platforms = [
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
|
||||
Reference in New Issue
Block a user