mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
obs-studio-plugins.input-overlay: fix building for aarch64
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
pkg-config,
|
||||
ninja,
|
||||
obs-studio,
|
||||
libuiohook,
|
||||
qtbase,
|
||||
@@ -13,14 +14,14 @@
|
||||
SDL2,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "obs-input-overlay";
|
||||
version = "5.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "univrsal";
|
||||
repo = "input-overlay";
|
||||
rev = "refs/tags/${version}";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-ju4u7hhx+hTuq7Oh0DBPV8RRM8zqyyvYV74KymU0+2c=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
@@ -28,6 +29,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -47,7 +49,7 @@ stdenv.mkDerivation rec {
|
||||
libxkbfile
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
cmakeFlags = lib.optionals stdenv.hostPlatform.isx86 [
|
||||
"-DCMAKE_CXX_FLAGS=-msse4.1"
|
||||
];
|
||||
|
||||
@@ -62,8 +64,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://github.com/univrsal/input-overlay";
|
||||
maintainers = with lib.maintainers; [ glittershark ];
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
# never built on aarch64-linux since first introduction in nixpkgs
|
||||
broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;
|
||||
inherit (obs-studio.meta) platforms;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user