ladybird: unstable-2022-09-29 -> unstable-2023-01-17
This commit is contained in:
@@ -10,28 +10,25 @@
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let serenity = fetchFromGitHub {
|
|
||||||
owner = "SerenityOS";
|
|
||||||
repo = "serenity";
|
|
||||||
rev = "a0f3e2c9a2b82117aa7c1a3444ad0d31baa070d5";
|
|
||||||
hash = "sha256-8Xde59ZfdkTD39mYSv0lfFjBHFDWTUwfozE+Q9Yq6C8=";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ladybird";
|
pname = "ladybird";
|
||||||
version = "unstable-2022-09-29";
|
version = "unstable-2023-01-17";
|
||||||
|
|
||||||
# Remember to update `serenity` too!
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SerenityOS";
|
owner = "SerenityOS";
|
||||||
repo = "ladybird";
|
repo = "serenity";
|
||||||
rev = "d69ad7332477de33bfd1963026e057d55c6f222d";
|
rev = "45e85d20b64862df119f643f24e2d500c76c58f3";
|
||||||
hash = "sha256-XQj2Bohk8F6dGCAManOmmDP5b/SqEeZXZbLDYPfvi2E=";
|
hash = "sha256-n2mLg9wNfdMGsJuGj+ukjto9qYjGOIz4cZjgvMGQUrY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sourceRoot = "source/Ladybird";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
--replace "MACOSX_BUNDLE TRUE" "MACOSX_BUNDLE FALSE"
|
--replace "MACOSX_BUNDLE TRUE" "MACOSX_BUNDLE FALSE"
|
||||||
|
# https://github.com/SerenityOS/serenity/issues/17062
|
||||||
|
substituteInPlace main.cpp \
|
||||||
|
--replace "./SQLServer/SQLServer" "$out/bin/SQLServer"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@@ -47,17 +44,18 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DSERENITY_SOURCE_DIR=${serenity}"
|
|
||||||
# Disable network operations
|
# Disable network operations
|
||||||
"-DENABLE_TIME_ZONE_DATABASE_DOWNLOAD=false"
|
"-DENABLE_TIME_ZONE_DATABASE_DOWNLOAD=false"
|
||||||
"-DENABLE_UNICODE_DATABASE_DOWNLOAD=false"
|
"-DENABLE_UNICODE_DATABASE_DOWNLOAD=false"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = [
|
||||||
|
"-Wno-error"
|
||||||
|
] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0") [
|
||||||
# error: use of undeclared identifier 'aligned_alloc'
|
# error: use of undeclared identifier 'aligned_alloc'
|
||||||
NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0") [
|
|
||||||
"-include mm_malloc.h"
|
"-include mm_malloc.h"
|
||||||
"-Daligned_alloc=_mm_malloc"
|
"-Daligned_alloc=_mm_malloc"
|
||||||
]);
|
];
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||||
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
|
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
|
||||||
|
|||||||
@@ -30871,7 +30871,7 @@ with pkgs;
|
|||||||
|
|
||||||
ladybird = qt6Packages.callPackage ../applications/networking/browsers/ladybird {
|
ladybird = qt6Packages.callPackage ../applications/networking/browsers/ladybird {
|
||||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||||
stdenv = if stdenv.isDarwin then llvmPackages_14.stdenv else gcc11Stdenv;
|
stdenv = if stdenv.isDarwin then llvmPackages_14.stdenv else gcc12Stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
lazpaint = callPackage ../applications/graphics/lazpaint { };
|
lazpaint = callPackage ../applications/graphics/lazpaint { };
|
||||||
|
|||||||
Reference in New Issue
Block a user